Class SqlEngineException

All Implemented Interfaces:
Serializable

public class SqlEngineException extends RuntimeException
The general exception class for the SQL Processor parser. This exception can be raised in the process of the META SQL statement or the mapping rule parsing. It encapsulates the ANTLR exceptions. In the runtime (query command execution) only SqlRuntimeException or SqlProcessorException can be raised.

For more info please see the Tutorials.

Author:
Vladimir Hudec
See Also:
  • Field Details

  • Constructor Details

    • SqlEngineException

      public SqlEngineException(String msg)
      Creates a new instance of the exception in the process of lexer and parser processing.
      Parameters:
      msg - the error message
    • SqlEngineException

      public SqlEngineException(String msg, List<ErrorMsg> lexerErrors, List<ErrorMsg> parserErrors, List<ErrorMsg> processorErrors)
      Creates a new instance of the exception in the process of lexer and parser processing.
      Parameters:
      msg - the error message
      lexerErrors - the optional list of (ANTLR) lexer errors
      parserErrors - the optional list of (ANTLR) parser errors
      processorErrors - the optional list of (ANTLR) processor errors
    • SqlEngineException

      public SqlEngineException(String msg, List<ErrorMsg> lexerErrors, List<ErrorMsg> parserErrors)
      Creates a new instance of the exception in the process of lexer and parser processing.
      Parameters:
      msg - the error message
      lexerErrors - the optional list of (ANTLR) lexer errors
      parserErrors - the optional list of (ANTLR) parser errors
  • Method Details

    • getMessage

      public String getMessage()
      Creates a human readable message describing the exception raised in the process of lexer and parser processing.
      Overrides:
      getMessage in class Throwable
      Returns:
      the readable message describing exception