|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.redhat.rhn.common.RhnRuntimeException
com.redhat.rhn.common.db.DatabaseException
com.redhat.rhn.common.db.ConstraintViolationException
public class ConstraintViolationException
Thrown when a DB constraint is violated
| Field Summary | |
|---|---|
protected java.lang.String |
constraint
|
protected int |
constraintType
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int constraintType
protected java.lang.String constraint
| Constructor Detail |
|---|
public ConstraintViolationException(int type,
java.lang.String name,
java.lang.String message)
type - constraint typename - constraint namemessage - exception message
public 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.)| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||