|
|||||
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
org.makumba.CompositeValidationException
public class CompositeValidationException
This class holds several InvalidValueException
of the same form together.
Constructor Summary | |
---|---|
CompositeValidationException()
Creates an empty instance |
|
CompositeValidationException(InvalidValueException... exceptions)
Creates an instance and adds all exceptions from the given array |
|
CompositeValidationException(Iterable<InvalidValueException> exceptions)
Creates an instance and adds all exceptions from the given Iterable |
Method Summary | |
---|---|
void |
addException(InvalidValueException e)
Adds a new exception |
ArrayList<InvalidValueException> |
getExceptions()
|
Collection<InvalidValueException> |
getExceptions(String fieldName)
Gets the exceptions gathered for a specific field name |
String |
getMessage()
returns the value of toString() |
boolean |
throwCheck()
Checks whether there are any exceptions gathered, and if so throws this CompositeValidationException |
String |
toString()
Prints the messages of all exceptions gathered |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompositeValidationException()
public CompositeValidationException(Iterable<InvalidValueException> exceptions)
Iterable
public CompositeValidationException(InvalidValueException... exceptions)
Method Detail |
---|
public ArrayList<InvalidValueException> getExceptions()
public void addException(InvalidValueException e)
public boolean throwCheck() throws CompositeValidationException
CompositeValidationException
CompositeValidationException
public String toString()
toString
in class Throwable
public String getMessage()
toString()
getMessage
in class Throwable
public Collection<InvalidValueException> getExceptions(String fieldName)
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |