|
||||||||||
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.barracudamvc.plankton.exceptions.NestableException
org.barracudamvc.core.forms.ValidationException
public class ValidationException
This class defines the validation exception. Code that catches these exceptions should check for subExceptions, as this class can be used to group collections of ValidationExceptions.
Field Summary | |
---|---|
protected static String |
sep
|
protected Object |
source
|
protected List |
subExceptions
|
Constructor Summary | |
---|---|
ValidationException()
The noargs public contructor for ValidationException |
|
ValidationException(Object source)
The public contructor for ValidationException |
|
ValidationException(Object source,
String s)
The public contructor for ValidationException |
|
ValidationException(Object isource,
String s,
Exception ibaseException)
The public contructor for ValidationException |
|
ValidationException(String s)
The public contructor for ValidationException |
Method Summary | |
---|---|
void |
addSubException(ValidationException ve)
Add a sub exception |
List |
getExceptionList()
Collapse all sub-exceptions into a single list of Validation exceptions |
protected List |
getExceptionList(ValidationException ve)
|
Object |
getSource()
Get the form element which caused this error |
List |
getSubExceptions()
Get a copy of the list of sub-exceptions. |
boolean |
hasSubExceptions()
See if this particular ValidationException has sub-exceptions |
String |
toString()
|
Methods inherited from class org.barracudamvc.plankton.exceptions.NestableException |
---|
getBaseException, getRootException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List subExceptions
protected Object source
protected static final String sep
Constructor Detail |
---|
public ValidationException()
public ValidationException(String s)
s
- a String describing the exceptionpublic ValidationException(Object source)
source
- the object which caused this error (usually a
FormElement)public ValidationException(Object source, String s)
source
- the object which caused this error (usually a
FormElement)s
- a String describing the exceptionpublic ValidationException(Object isource, String s, Exception ibaseException)
isource
- the object which caused this error (usually a
FormElement)s
- a String describing the exceptionibaseException
- the original exception to wrap within this exceptionMethod Detail |
---|
public Object getSource()
public boolean hasSubExceptions()
public void addSubException(ValidationException ve)
ve
- a sub-exception to be addedpublic List getSubExceptions()
public String toString()
toString
in class Throwable
public List getExceptionList()
protected List getExceptionList(ValidationException ve)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |