Class ReferentialIntegrityException

All Implemented Interfaces:
Serializable

public final class ReferentialIntegrityException extends DatabaseException
An exception indicating a referential integrity failure
See Also:
  • Constructor Details

    • ReferentialIntegrityException

      public ReferentialIntegrityException(SQLException cause, @Nullable String message, Operation operation)
      Parameters:
      cause - the underlying cause
      message - the error message
      operation - the operation causing this exception
    • ReferentialIntegrityException

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

      public ReferentialIntegrityException(@Nullable SQLException cause, ErrorType errorType, @Nullable String detail, Operation operation)
      Instantiates a new ReferentialIntegrityException, its message the one associated with the error type. For ErrorType.REFERENTIAL_INTEGRITY, which does not specify which way the constraint was violated, the message is based on the operation.
      Parameters:
      cause - the underlying cause, if any
      errorType - the error type
      detail - the detail, null if none
      operation - the operation causing this exception
  • Method Details