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
public class InvalidPrimaryKeyException extends AbstractUnprocessableEntityException
Thrown when the primary key of the entity is invalid. This is used both for general rules (e.g. primary key cannot benull) 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, useConflictingEntityExceptioninstead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPrimaryKeyException()InvalidPrimaryKeyException(String message)InvalidPrimaryKeyException(String message, Throwable cause)InvalidPrimaryKeyException(Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-