Package org.apache.empire.db.exceptions
Class ConstraintViolationException
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
org.apache.empire.db.exceptions.ConstraintViolationException
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.exceptions.EmpireException
EmpireException.ExceptionMessageFormatter -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstraintViolationException(DBMSHandler dbms, String sqlCmd, SQLException cause) Constructor for ConstraintViolationException -
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
-
ConstraintViolationException
Constructor for ConstraintViolationException- Parameters:
dbms- the DBMSsqlCmd- the failed SQL commandcause- the SQLException
-
-
Method Details
-
log
protected void log()log the error- Overrides:
login classStatementFailedException
-