Package org.apache.empire.db.exceptions
Class StatementFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.empire.exceptions.EmpireException
org.apache.empire.db.exceptions.EmpireSQLException
org.apache.empire.db.exceptions.StatementFailedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConstraintViolationException
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.exceptions.EmpireException
EmpireException.ExceptionMessageFormatter -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatementFailedException(ErrorType type, String[] params, int nativeErrorIndex, SQLException cause) Constructor for derived classes onlyStatementFailedException(DBMSHandler dbms, String sqlCmd, SQLException cause) Constructor for StatementFailedException -
Method Summary
Methods inherited from class org.apache.empire.db.exceptions.EmpireSQLException
getNativeErrorMessage, handlerFromObject, messageFromSQLExceptionMethods inherited from class org.apache.empire.exceptions.EmpireException
formatErrorMessage, getErrorParams, getErrorType, getMessageFormatter, setMessageFormatterMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorType
-
-
Constructor Details
-
StatementFailedException
Constructor for StatementFailedException- Parameters:
dbms- the DBMSsqlCmd- the failed SQL commandcause- the SQLException
-
StatementFailedException
protected StatementFailedException(ErrorType type, String[] params, int nativeErrorIndex, SQLException cause) Constructor for derived classes only- Parameters:
type- the error typeparams- the error paramsnativeErrorIndex- the navtive error indexcause- the causing exception
-
-
Method Details
-
log
protected void log()log the error- Overrides:
login classEmpireException
-