org.hibernate.exception
Class ConstraintViolationException
- Nestable
public class ConstraintViolationException
Implementation of JDBCException indicating that the requested DML operation
resulted in a violation of a defined integrity constraint.
getCause , getMessage , getMessage , getMessages , getThrowable , getThrowableCount , getThrowables , indexOfThrowable , indexOfThrowable , printPartialStackTrace , printStackTrace , printStackTrace , printStackTrace |
ConstraintViolationException
public ConstraintViolationException(String message,
SQLException root,
String constraintName)
ConstraintViolationException
public ConstraintViolationException(String message,
SQLException root,
String sql,
String constraintName)
getConstraintName
public String getConstraintName()
Returns the name of the violated constraint, if known.
- The name of the violated constraint, or null if not known.