Class ErrorList

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.kuali.rice.ken.exception.ErrorList
All Implemented Interfaces:
Serializable

public class ErrorList extends Exception
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 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

      public void addError(String error)
      This method adds errors to the error list.
      Parameters:
      error -
    • getErrors

      public List getErrors()
      This method retreives all of the errors in the list.
      Returns:
      List
    • addErrors

      public void addErrors(ErrorList errors)
      This method adds a list of errors to the error list.
      Parameters:
      errors -
    • getMessage

      public String getMessage()
      This method returns a string representation of all of the errors in the error list.
      Overrides:
      getMessage in class Throwable
      See Also:
    • toString

      public String toString()
      This method is responsible for concatenating all of the errors in the error list together.
      Overrides:
      toString in class Throwable
      See Also: