Class 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 be 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 Details

    • InvalidPrimaryKeyException

      public InvalidPrimaryKeyException()
    • InvalidPrimaryKeyException

      public InvalidPrimaryKeyException(String message, Throwable cause)
    • InvalidPrimaryKeyException

      public InvalidPrimaryKeyException(String message)
    • InvalidPrimaryKeyException

      public InvalidPrimaryKeyException(Throwable cause)