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.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | SQLIntegrityConstraintViolationException()
Constructs a |
| public | SQLIntegrityConstraintViolationException(String
a description of the exception reason)Constructs a |
| public | SQLIntegrityConstraintViolationException(String
a description of the exception reason, String an XOPEN or SQL:2003 code identifying the exception SQLState)Constructs a |
| public | SQLIntegrityConstraintViolationException(String
a description of the exception reason, String an XOPEN or SQL:2003 code identifying the exception SQLState, int a database vendor specific exception code vendorCode)Constructs a |
| public | SQLIntegrityConstraintViolationException(Throwable
the underlying reason for this cause)SQLException (which is saved for later retrieval by the getCause() method); may be null indicating
the cause is non-existent or unknown.Constructs an |
| public | SQLIntegrityConstraintViolationException(String
a description of the exception. reason, Throwable the (which is saved for later retrieval by the cause)getCause() method); may be null indicating
the cause is non-existent or unknown.Constructs a |
| public | SQLIntegrityConstraintViolationException(String
a description of the exception. reason, String an XOPEN or SQL:2003 code identifying the exception SQLState, Throwable the underlying reason for this cause)SQLException (which is saved for later retrieval by the getCause() method); may be null indicating
the cause is non-existent or unknown.Constructs a |
| public | SQLIntegrityConstraintViolationException(String
a description of the exception reason, String an XOPEN or SQL:2003 code identifying the exception SQLState, int a database vendor-specific exception code vendorCode, Throwable the (which is saved for later retrieval by the cause)getCause() method); may be null indicating
the cause is non-existent or unknown.Constructs a |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException() Constructs a
| |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(String reason) Constructs a
| |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(String reason, String SQLState) Constructs a | |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(String reason, String SQLState, int vendorCode) Constructs a | |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(Throwable cause) Constructs an
| |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(String reason, Throwable cause) Constructs a | |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(String reason, String SQLState, Throwable cause) Constructs a
| |
| SQLIntegrityConstraintViolationException | back to summary |
|---|---|
| public SQLIntegrityConstraintViolationException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs a
| |