Package org.kuali.rice.ken.exception
Class ErrorList
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.kuali.rice.ken.exception.ErrorList
- All Implemented Interfaces:
Serializable
This class is a valud 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.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method adds errors to the error list.voidThis method adds a list of errors to the error list.This method retreives all of the errors in the list.This method returns a string representation of all of the errors in the error list.booleanisEmpty()This method checks to see if the list is empty or not.toString()This method is responsible for concatenating all of the errors in the error list together.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ErrorList
public ErrorList()Constructs a ErrorList instance.
-
-
Method Details
-
isEmpty
public boolean isEmpty()This method checks to see if the list is empty or not.- Returns:
- boolean
-
addError
This method adds errors to the error list.- Parameters:
error-
-
getErrors
This method retreives all of the errors in the list.- Returns:
- List
-
addErrors
This method adds a list of errors to the error list.- Parameters:
errors-
-
getMessage
This method returns a string representation of all of the errors in the error list.- Overrides:
getMessagein classThrowable- See Also:
-
toString
This method is responsible for concatenating all of the errors in the error list together.
-