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
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
Fields Modifier and Type Field Description private static long
serialVersionUID
private String
sqlCommand
The failed SQL command.
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
String
getSqlCommand()
Returns the failed SQL command.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 messagecause
- the error cause
-
SqlProcessorException
public SqlProcessorException(Throwable cause, String sqlCommand)
Creates a new instance of the exception.- Parameters:
cause
- the error causesqlCommand
- 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 classThrowable
-
-