|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.commons.latka.ValidationException
public class ValidationException
This exception is thrown by validators when a validation has failed
Constructor Summary | |
---|---|
ValidationException()
Create a validation exception with a null label and reason |
|
ValidationException(String label,
String reason)
Create a validation exception with the given label and reason |
Method Summary | |
---|---|
String |
getLabel()
User's description of the test/assertion |
String |
getMessage()
the message of the exception |
String |
getReason()
Why the test/assertion failed |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationException()
public ValidationException(String label, String reason)
label
- the user's description of the assertion/testreason
- the reason it failedMethod Detail |
---|
public String getMessage()
getMessage
in class Throwable
public String getLabel()
public String getReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |