Package org.sqlproc.engine
Class SqlProcessorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.sqlproc.engine.SqlProcessorException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private String
The failed SQL command. -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionReturns the failed SQL command.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
sqlCommand
The failed SQL command.
-
-
Constructor Details
-
SqlProcessorException
public SqlProcessorException()Creates a new instance of the exception. -
SqlProcessorException
Creates a new instance of the exception.- Parameters:
message
- the error message
-
SqlProcessorException
Creates a new instance of the exception.- Parameters:
cause
- the error cause
-
SqlProcessorException
Creates a new instance of the exception.- Parameters:
message
- the error messagecause
- the error cause
-
SqlProcessorException
Creates a new instance of the exception.- Parameters:
cause
- the error causesqlCommand
- the failed SQL command
-
SqlProcessorException
Creates a new instance of the exception.- Parameters:
message
- the error messagecause
- the error causesqlCommand
- the failed SQL command
-
-
Method Details
-
getSqlCommand
Returns the failed SQL command.- Returns:
- the failed SQL command
-
getMessage
- Overrides:
getMessage
in classThrowable
-