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:
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.

For more info please see the Tutorials.

Author:
Vladimir Hudec
See Also:
Serialized Form

Field Summary
private  List<ErrorMsg> errors
          The list of parsing errors.
private static long serialVersionUID
           
 
Constructor Summary
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
 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
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

errors

private List<ErrorMsg> errors
The list of parsing errors.

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 message
lexerErrors - the optional list of (ANTLR) lexer errors
parserErrors - the optional list of (ANTLR) parser errors
processorErrors - 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 message
lexerErrors - the optional list of (ANTLR) lexer errors
parserErrors - 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 class Throwable
Returns:
the readable message describing exception


Copyright © 2012. All Rights Reserved.