JDBCException indicating that the requested DML operation
resulted in violation of a defined integrity constraint.
| Access | Constructor and Description |
|---|---|
| public | |
| public | ConstraintViolationException(String message, SQLException root, String sql, @Nullable String constraintName)
|
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable String | Returns: The name of the violated constraint, or null if not known.Returns the name of the violated constraint, if known. |
| constraintName | back to summary |
|---|---|
| private final @Nullable String constraintName | |
| ConstraintViolationException | back to summary |
|---|---|
| public ConstraintViolationException(String message, SQLException root, @Nullable String constraintName) | |
| ConstraintViolationException | back to summary |
|---|---|
| public ConstraintViolationException(String message, SQLException root, String sql, @Nullable String constraintName) | |
| getConstraintName | back to summary |
|---|---|
| public @Nullable String getConstraintName() Returns the name of the violated constraint, if known. | |