org.sqlproc.engine
Class SqlEngineException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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
 

Field Detail

errors

private java.util.List<ErrorMsg> errors
List of parsing errors.

Constructor Detail

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 message
lexerErrors - the optional list of (ANTLR) lexer errors
parserErrors - the optional list of (ANTLR) parser errors
Method Detail

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.