java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jooq.exception.DataAccessException
org.jooq.exception.IntegrityConstraintViolationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionConstructor for IntegrityConstraintViolationException.IntegrityConstraintViolationException
(String message, Throwable cause) Constructor for IntegrityConstraintViolationException. -
Method Summary
Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateSubclass, sqlStateSubclass
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IntegrityConstraintViolationException
Constructor for IntegrityConstraintViolationException.- Parameters:
message
- the detail message
-
IntegrityConstraintViolationException
Constructor for IntegrityConstraintViolationException.- Parameters:
message
- the detail messagecause
- the root cause (usually from using a underlying data access API such as JDBC)
-