Module org.jooq

Class IntegrityConstraintViolationException

All Implemented Interfaces:
Serializable

public class IntegrityConstraintViolationException extends DataAccessException
The IntegrityConstraintViolationException is jOOQ's equivalent of JDBC's SQLIntegrityConstraintViolationException.

It is thrown by jOOQ whenever jOOQ detects SQLStateClass.C23_INTEGRITY_CONSTRAINT_VIOLATION from the JDBC driver. Whether this SQL state is available is JDBC driver implementation specific.

Author:
Lukas Eder
See Also:
  • Constructor Details

    • IntegrityConstraintViolationException

      public IntegrityConstraintViolationException(String message)
      Constructor for IntegrityConstraintViolationException.
      Parameters:
      message - the detail message
    • IntegrityConstraintViolationException

      public IntegrityConstraintViolationException(String message, Throwable cause)
      Constructor for IntegrityConstraintViolationException.
      Parameters:
      message - the detail message
      cause - the root cause (usually from using a underlying data access API such as JDBC)