Package org.sqlproc.engine
Class SqlEngineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.sqlproc.engine.SqlEngineException
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionThe list of parsing errors.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSqlEngineException
(String msg) Creates a new instance of the exception in the process of lexer and parser processing.Creates a new instance of the exception in the process of lexer and parser processing.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. -
Method Summary
Modifier and TypeMethodDescriptionCreates a human readable message describing the exception raised in the process of lexer and parser processing.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
errors
The list of parsing errors.
-
-
Constructor Details
-
SqlEngineException
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 messagelexerErrors
- the optional list of (ANTLR) lexer errorsparserErrors
- the optional list of (ANTLR) parser errorsprocessorErrors
- the optional list of (ANTLR) processor errors
-
SqlEngineException
Creates a new instance of the exception in the process of lexer and parser processing.- Parameters:
msg
- the error messagelexerErrors
- the optional list of (ANTLR) lexer errorsparserErrors
- the optional list of (ANTLR) parser errors
-
-
Method Details
-
getMessage
Creates a human readable message describing the exception raised in the process of lexer and parser processing.- Overrides:
getMessage
in classThrowable
- Returns:
- the readable message describing exception
-