public class ConstraintViolationException extends JDBCException
| Constructor and Description | 
|---|
ConstraintViolationException(String message,
                            SQLException root,
                            String constraintName)  | 
ConstraintViolationException(String message,
                            SQLException root,
                            String sql,
                            String constraintName)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getConstraintName()
Returns the name of the violated constraint, if known. 
 | 
getErrorCode, getSQL, getSQLException, getSQLStateaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConstraintViolationException(String message, SQLException root, String constraintName)
public ConstraintViolationException(String message, SQLException root, String sql, String constraintName)
public String getConstraintName()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.