Top Description Constructors Methods
org.jooq.exception

public Class IntegrityConstraintViolationException

extends DataAccessException
Class Inheritance
Imports
java.sql.SQLIntegrityConstraintViolationException

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

Constructor Summary

AccessConstructor and Description
public
IntegrityConstraintViolationException(String
the detail message
message
)

Constructor for IntegrityConstraintViolationException.

public
IntegrityConstraintViolationException(String
the detail message
message
,
Throwable
the root cause (usually from using a underlying data access API such as JDBC)
cause
)

Constructor for IntegrityConstraintViolationException.

Method Summary

Inherited from org.jooq.exception.DataAccessException:
getCausegetStackTracesqlStatesqlStateClasssqlStateClasssqlStateClasssqlStateSubclass

Constructor Detail

IntegrityConstraintViolationExceptionback to summary
public IntegrityConstraintViolationException(String message)

Constructor for IntegrityConstraintViolationException.

Parameters
message:String

the detail message

IntegrityConstraintViolationExceptionback to summary
public IntegrityConstraintViolationException(String message, Throwable cause)

Constructor for IntegrityConstraintViolationException.

Parameters
message:String

the detail message

cause:Throwable

the root cause (usually from using a underlying data access API such as JDBC)