ConstraintViolationExceptionpublic class ConstraintViolationException extends org.hibernate.JDBCException Implementation of JDBCException indicating that the requested DML operation
resulted in a violation of a defined integrity constraint. |
Fields Summary |
---|
private String | constraintName |
Constructors Summary |
---|
public ConstraintViolationException(String message, SQLException root, String constraintName)
super( message, root );
this.constraintName = constraintName;
| public ConstraintViolationException(String message, SQLException root, String sql, String constraintName)
super( message, root, sql );
this.constraintName = constraintName;
|
Methods Summary |
---|
public java.lang.String | getConstraintName()Returns the name of the violated constraint, if known.
return constraintName;
|
|