Class UniqueConstraintException

All Implemented Interfaces:
Serializable

public final class UniqueConstraintException extends DatabaseException
An exception indicating a unique constraint failure
See Also:
  • Constructor Details

    • UniqueConstraintException

      public UniqueConstraintException(SQLException cause, @Nullable String message)
      Instantiates a new UniqueConstraintException
      Parameters:
      cause - the underlying cause
      message - the error message
    • UniqueConstraintException

      public UniqueConstraintException(@Nullable String message)
      Instantiates a new UniqueConstraintException, for a client reconstructing this exception from a message, having no SQLException to hand.
      Parameters:
      message - the error message
    • UniqueConstraintException

      public UniqueConstraintException(@Nullable SQLException cause, ErrorType errorType, @Nullable String detail)
      Instantiates a new UniqueConstraintException, its message the one associated with the error type
      Parameters:
      cause - the underlying cause, if any
      errorType - the error type
      detail - the detail, null if none