org.sqlproc.engine
Class SqlProcessorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.sqlproc.engine.SqlProcessorException
All Implemented Interfaces:
Serializable

public class SqlProcessorException
extends RuntimeException

The general runtime exception class for the SQL Processor engine. This exception can be raised in the process of a META SQL query or a statement execution. It's produced in the JDBC or ORM layer, not in the SQL Processor engine itself. Most of the time it's a wrapper class for the cause exception.

For more info please see the Tutorials.

Author:
Vladimir Hudec
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  String sqlCommand
          The failed SQL command.
 
Constructor Summary
SqlProcessorException()
          Creates a new instance of the exception.
SqlProcessorException(String message)
          Creates a new instance of the exception.
SqlProcessorException(String message, Throwable cause)
          Creates a new instance of the exception.
SqlProcessorException(String message, Throwable cause, String sqlCommand)
          Creates a new instance of the exception.
SqlProcessorException(Throwable cause)
          Creates a new instance of the exception.
SqlProcessorException(Throwable cause, String sqlCommand)
          Creates a new instance of the exception.
 
Method Summary
 String getMessage()
           
 String getSqlCommand()
          Returns the failed SQL command.
 
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

sqlCommand

private String sqlCommand
The failed SQL command.

Constructor Detail

SqlProcessorException

public SqlProcessorException()
Creates a new instance of the exception.


SqlProcessorException

public SqlProcessorException(String message)
Creates a new instance of the exception.

Parameters:
message - the error message

SqlProcessorException

public SqlProcessorException(Throwable cause)
Creates a new instance of the exception.

Parameters:
cause - the error cause

SqlProcessorException

public SqlProcessorException(String message,
                             Throwable cause)
Creates a new instance of the exception.

Parameters:
message - the error message
cause - the error cause

SqlProcessorException

public SqlProcessorException(Throwable cause,
                             String sqlCommand)
Creates a new instance of the exception.

Parameters:
cause - the error cause
sqlCommand - the failed SQL command

SqlProcessorException

public SqlProcessorException(String message,
                             Throwable cause,
                             String sqlCommand)
Creates a new instance of the exception.

Parameters:
message - the error message
cause - the error cause
sqlCommand - the failed SQL command
Method Detail

getSqlCommand

public String getSqlCommand()
Returns the failed SQL command.

Returns:
the failed SQL command

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2014. All rights reserved.