Example usage for Java org.hibernate.exception ConstraintViolationException fields, constructors, methods, implement or subclass
The text is from its open source code.
ConstraintViolationException(String message, SQLException root, String constraintName) | |
ConstraintViolationException(String message, SQLException root, String sql, String constraintName) |
String | getConstraintName() Returns the name of the violated constraint, if known. |
int | getErrorCode() Get the vendor specific error code from the underlying SQLException . |
String | getSQL() Get the actual SQL statement being executed when the exception occurred. |
SQLException | getSQLException() Get the underlying SQLException . |
String | getSQLState() Get the X/Open or ANSI SQL SQLState error code from the underlying SQLException . |