|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.qpid.management.domain.model.ValidationException
public class ValidationException
Thrown when an attempt is made in order to update / change the state of an object and a constraint on that state is violated.
Field Summary | |
---|---|
static String |
MAX_LENGTH
|
static String |
MAX_VALUE
|
static String |
MIN_VALUE
|
Constructor Summary | |
---|---|
ValidationException(String constraintName,
Number constraintValue,
String featureName,
Object featureValue)
Builds a new validation exception with the specified parameters. |
Method Summary | |
---|---|
String |
getConstraintName()
Returns the name of the violated constraint. |
Number |
getConstraintValue()
Returns the value of the violated constraint. |
String |
getFeatureName()
Returns the name of the violating feature. |
Object |
getFeatureValue()
Returns the value of the violating feature. |
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 |
---|
public static final String MAX_LENGTH
public static final String MAX_VALUE
public static final String MIN_VALUE
Constructor Detail |
---|
ValidationException(String constraintName, Number constraintValue, String featureName, Object featureValue)
constraintName
- the name of the violated constraint.constraintValue
- the value of the violated constraint.featureName
- the name of the violating feature.featureValue
- the value of the violating feature.Method Detail |
---|
public Object getFeatureValue()
public String getFeatureName()
public Number getConstraintValue()
public String getConstraintName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |