java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
is.codion.common.db.exception.DatabaseException
is.codion.common.db.exception.UniqueConstraintException
- All Implemented Interfaces:
Serializable
An exception indicating a unique constraint failure
- See Also:
-
Field Summary
Fields inherited from class is.codion.common.db.exception.DatabaseException
SQL_STATE_NO_DATA -
Constructor Summary
ConstructorsConstructorDescriptionUniqueConstraintException(@Nullable String message) Instantiates a newUniqueConstraintException, for a client reconstructing this exception from a message, having noSQLExceptionto hand.UniqueConstraintException(SQLException cause, @Nullable String message) Instantiates a newUniqueConstraintException -
Method Summary
Methods inherited from class is.codion.common.db.exception.DatabaseException
errorCode, setStackTrace, sqlState, statementMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, toString
-
Constructor Details
-
UniqueConstraintException
Instantiates a newUniqueConstraintException- Parameters:
cause- the underlying causemessage- the error message
-
UniqueConstraintException
Instantiates a newUniqueConstraintException, for a client reconstructing this exception from a message, having noSQLExceptionto hand.- Parameters:
message- the error message
-