public class ConstraintViolationException extends DatabaseException
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | constraint | 
| protected int | constraintType | 
| Constructor and Description | 
|---|
| ConstraintViolationException(int type,
                            java.lang.String name,
                            java.lang.String message)Constructor | 
| ConstraintViolationException(int type,
                            java.lang.String name,
                            java.lang.String message,
                            java.lang.Throwable cause)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getConstraint()Returns the value of constraint | 
| int | getConstraintType()Returns the value of constraintType | 
| void | setConstraint(java.lang.String name)Sets the constraint to the given value. | 
| void | setConstraintType(int type)Sets the constraintType to the given value. | 
protected int constraintType
protected java.lang.String constraint
public ConstraintViolationException(int type,
                                    java.lang.String name,
                                    java.lang.String message)
type - constraint typename - constraint namemessage - exception messagepublic ConstraintViolationException(int type,
                                    java.lang.String name,
                                    java.lang.String message,
                                    java.lang.Throwable cause)
type - constraint typename - constraint namemessage - exception messagecause - the cause (which is saved for later retrieval
 by the Throwable.getCause() method). (A null value is
 permitted, and indicates that the cause is nonexistent or
 unknown.)public int getConstraintType()
public void setConstraintType(int type)
type - constraint typepublic java.lang.String getConstraint()
public void setConstraint(java.lang.String name)
name - constraint name