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) only SqlRuntimeException
or
SqlProcessorException
can be raised.
- Author:
- Vladimir Hudec
- See Also:
- Serialized Form
Method Summary |
String |
getMessage()
Creates a human readable message describing the exception raised in the process of lexer and parser processing. |
errors
private List<ErrorMsg> errors
- The list of parsing errors.
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)
- 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
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
Copyright © 2011. All Rights Reserved.