org.sqlproc.engine
Class SqlEngineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.sqlproc.engine.SqlEngineException
- All Implemented Interfaces:
- java.io.Serializable
public class SqlEngineException
- extends java.lang.RuntimeException
General exception class for the SQL Processor parser.
This exception can be raised in the process of META SQL and Mapping rule parsing. It encapsulates ANTLR exceptions.
In the runtime (query command execution) only HibernateException
can be raised.
- Author:
- Vladimir Hudec
- See Also:
- Serialized Form
Field Summary |
private java.util.List<ErrorMsg> |
errors
List of parsing errors. |
Constructor Summary |
SqlEngineException(java.lang.String msg)
Creates a new instance of the exception in the process of lexer and parser processing. |
SqlEngineException(java.lang.String msg,
java.util.List<ErrorMsg> lexerErrors,
java.util.List<ErrorMsg> parserErrors)
Creates a new instance of the exception in the process of lexer and parser processing. |
Method Summary |
java.lang.String |
getMessage()
Creates a human readable message regarding exceptions raised in the process of lexer and parser processing. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
errors
private java.util.List<ErrorMsg> errors
- List of parsing errors.
SqlEngineException
public SqlEngineException(java.lang.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(java.lang.String msg,
java.util.List<ErrorMsg> lexerErrors,
java.util.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 java.lang.String getMessage()
- Creates a human readable message regarding exceptions raised in the process of lexer and parser processing.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- the readable message describing exception
Copyright © 2011. All Rights Reserved.