Module java.sql
Package java.sql

Class SQLIntegrityConstraintViolationException

java.lang.Object
All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class SQLIntegrityConstraintViolationException extends SQLNonTransientException
The subclass of SQLException thrown when the SQLState class value is '23', or under vendor-specified conditions. This indicates that an integrity constraint (foreign key, primary key or unique key) has been violated.

Please consult your driver vendor documentation for the vendor-specified conditions for which this Exception may be thrown.

Since:
1.6
See Also: