Package gov.niem.tools.api.db.exceptions
Class DatabaseKeyViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
gov.niem.tools.api.db.exceptions.DatabaseKeyViolationException
- All Implemented Interfaces:
Serializable
@ResponseStatus(UNPROCESSABLE_ENTITY)
public class DatabaseKeyViolationException
extends RuntimeException
Customized exception handler for database key violations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseKeyViolationException
(String model, String value) Throws an exception after an attempt to add an object that is not unique to the database.DatabaseKeyViolationException
(String model, String value, String additionalErrors) Throws an exception after an attempt to add an object that is not unique to the database. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DatabaseKeyViolationException
Throws an exception after an attempt to add an object that is not unique to the database. -
DatabaseKeyViolationException
Throws an exception after an attempt to add an object that is not unique to the database.
-