|
|||||||||||
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.enhydra.barracuda.core.util.exceptions.NestableException | +--org.enhydra.barracuda.core.forms.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 java.lang.Object |
source
|
protected java.util.List |
subExceptions
|
Constructor Summary | |
ValidationException()
The noargs public contructor for ValidationException |
|
ValidationException(java.lang.Object source)
The public contructor for ValidationException |
|
ValidationException(java.lang.Object source,
java.lang.String s)
The public contructor for ValidationException |
|
ValidationException(java.lang.Object isource,
java.lang.String s,
java.lang.Exception ibaseException)
The public contructor for ValidationException |
|
ValidationException(java.lang.String s)
The public contructor for ValidationException |
Method Summary | |
void |
addSubException(ValidationException ve)
Add a sub exception |
java.util.List |
getExceptionList()
Collapse all sub-exceptions into a single list of Validation exceptions |
protected java.util.List |
getExceptionList(ValidationException ve)
|
java.lang.Object |
getSource()
Get the form element which caused this error |
java.util.List |
getSubExceptions()
Get a copy of the list of sub-exceptions. |
boolean |
hasSubExceptions()
See if this particular ValidationException has sub-exceptions |
java.lang.String |
toString()
|
Methods inherited from class org.enhydra.barracuda.core.util.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 java.util.List subExceptions
protected java.lang.Object source
Constructor Detail |
public ValidationException()
public ValidationException(java.lang.String s)
s
- a String describing the exceptionpublic ValidationException(java.lang.Object source)
source
- the object which caused this error (usually a
FormElement)public ValidationException(java.lang.Object source, java.lang.String s)
source
- the object which caused this error (usually a
FormElement)s
- a String describing the exceptionpublic ValidationException(java.lang.Object isource, java.lang.String s, java.lang.Exception ibaseException)
s
- a String describing the exceptionMethod Detail |
public java.lang.Object getSource()
public boolean hasSubExceptions()
public void addSubException(ValidationException ve)
ve
- a sub-exception to be addedpublic java.util.List getSubExceptions()
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.util.List getExceptionList()
protected java.util.List getExceptionList(ValidationException ve)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |