|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ejb.EJBException
au.gov.tas.dpiwe.mr.bean.ValidateFieldsException
public class ValidateFieldsException
ValidateFields exception is thrown when a bean fails one or more validation tests.
| Field Summary | |
|---|---|
protected Collection |
exceptions
The Exceptions which were encountered during the validation process. |
| Constructor Summary | |
|---|---|
ValidateFieldsException()
A validate fields exception encompassing many ValidateExceptions, which are added as if this were a collection. |
|
ValidateFieldsException(ValidateException validateException)
Constructs a new validate fields exception with a single ValidateException. |
|
| Method Summary | |
|---|---|
void |
add(ValidateException validateException)
Adds a ValidateException to this collection. |
String |
getMessage()
Returns an error message for the first of the wrapped exceptions. |
boolean |
hasException()
Returns true if this collection contains at least one ValidateException. |
Iterator |
iterator()
Returns an iterator over the components of this composite object. |
| Methods inherited from class javax.ejb.EJBException |
|---|
getCausedByException, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Collection exceptions
| Constructor Detail |
|---|
public ValidateFieldsException()
public ValidateFieldsException(ValidateException validateException)
validateException - the single ValidateException.| Method Detail |
|---|
public void add(ValidateException validateException)
validateException - the ValidateException to add.public String getMessage()
getMessage in class EJBExceptionpublic boolean hasException()
public Iterator iterator()
Iterable
iterator in interface Iterable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||