|
||||||||||
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.kuali.rice.kcb.exception.ErrorList
public class ErrorList
This class is a value added datastructure that is used to house a list of Exceptions and is recognized as an Exception so that it can be thrown from methods and handled like an Exception.
Field Summary | |
---|---|
private List<String> |
errorList
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ErrorList()
Constructs a ErrorList instance. |
Method Summary | |
---|---|
void |
addError(String error)
This method adds errors to the error list. |
void |
addErrors(ErrorList errors)
This method adds a list of errors to the error list. |
List<String> |
getErrors()
This method retreives all of the errors in the list. |
String |
getMessage()
This method returns a string representation of all of the errors in the error list. |
boolean |
isEmpty()
This method checks to see if the list is empty or not. |
String |
toString()
This method is responsible for concatenating all of the errors in the error list together. |
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 |
Field Detail |
---|
private static final long serialVersionUID
private List<String> errorList
Constructor Detail |
---|
public ErrorList()
Method Detail |
---|
public boolean isEmpty()
public void addError(String error)
error
- public List<String> getErrors()
public void addErrors(ErrorList errors)
errors
- public String getMessage()
getMessage
in class Throwable
Throwable.getMessage()
public String toString()
toString
in class Throwable
Throwable.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |