|
|||||||||
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 toolbox.web.validation.ValidationException
public class ValidationException
Exception that is thrown when validation exceptions occur.
Constructor Summary | |
---|---|
ValidationException()
Default constructor |
|
ValidationException(java.lang.Exception ex)
Creates a new ValidationException from the given Exception. |
|
ValidationException(java.lang.String msg)
Generates a ValidationException with the given message. |
Method Summary | |
---|---|
void |
addMessage(java.lang.String msg)
Add a validation exception message to this exception |
void |
addMessages(java.util.Collection msgs)
Add the messages from the given collection to the message list of this exception. |
java.util.List |
getMessages()
Return the list of validation exception messages. |
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 |
Constructor Detail |
---|
public ValidationException()
public ValidationException(java.lang.Exception ex)
ex
- Underlying exception that occured.public ValidationException(java.lang.String msg)
msg
- String containing the exception message.Method Detail |
---|
public void addMessage(java.lang.String msg)
msg
- Message to addpublic void addMessages(java.util.Collection msgs)
msgs
- Collection containing messages.public java.util.List getMessages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |