org.apache.xbean.kernel
Class KernelErrorsError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.apache.xbean.kernel.KernelErrorsError
- All Implemented Interfaces:
- Serializable
public class KernelErrorsError
- extends Error
Groups a collection of errors from a set of work so they maybe be thrown together from the kernel. This is used
when the kernel does aggregate work on somthing that shouldn't fail such as when notifying kernel monitors or
destroying the kernel. This allows the kernel to preform all required work and then throw any errors as a single
exception object.
- Since:
- 2.0
- Author:
- Dain Sundstrom
- See Also:
- Serialized Form
Constructor Summary |
KernelErrorsError(List errors)
Creates an Errors error containing the list of errors. |
KernelErrorsError
public KernelErrorsError(List errors)
- Creates an Errors error containing the list of errors.
- Parameters:
errors
- the errors
getErrors
public List getErrors()
- Gets the errors that casued this error.
- Returns:
- the errors that casued this error
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in class Throwable
printStackTrace
public void printStackTrace(PrintStream stream)
- Overrides:
printStackTrace
in class Throwable
printStackTrace
public void printStackTrace(PrintWriter writer)
- Overrides:
printStackTrace
in class Throwable
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.