Package com.github.mizool.core.exception
Class InvalidPrimaryKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.mizool.core.exception.AbstractUnprocessableEntityException
com.github.mizool.core.exception.InvalidPrimaryKeyException
- All Implemented Interfaces:
Serializable
Thrown when the primary key of the entity is invalid. This is used both for general rules (e.g. primary key cannot be
If the primary key is already in use by another record, use
null
) and situational checks (e.g. primary key cannot be changed as part of an update).If the primary key is already in use by another record, use
ConflictingEntityException
instead.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPrimaryKeyException
(String message) InvalidPrimaryKeyException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPrimaryKeyException
public InvalidPrimaryKeyException() -
InvalidPrimaryKeyException
-
InvalidPrimaryKeyException
-
InvalidPrimaryKeyException
-