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
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) onlySqlRuntimeException
orSqlProcessorException
can be raised.For more info please see the Tutorials.
- Author:
- Vladimir Hudec
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private List<ErrorMsg>
errors
The list of parsing errors.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SqlEngineException(String msg)
Creates a new instance of the exception in the process of lexer and parser processing.SqlEngineException(String msg, List<ErrorMsg> lexerErrors, List<ErrorMsg> parserErrors)
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Creates 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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 messagelexerErrors
- the optional list of (ANTLR) lexer errorsparserErrors
- the optional list of (ANTLR) parser errorsprocessorErrors
- 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 messagelexerErrors
- the optional list of (ANTLR) lexer errorsparserErrors
- the optional list of (ANTLR) parser errors
-
-
Method Detail
-
getMessage
public String 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
-
-