removed '\n' in the argument in THROW_SQL_PROCESSOR_EXCEPTION() according to the usage.
added code to throw SQLProcessorException when select() falis in FormulaExists.