org.apache.xbean.kernel
Class KernelErrorsError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.apache.xbean.kernel.KernelErrorsError
- All Implemented Interfaces:
- java.io.Serializable
- public class KernelErrorsError
- extends java.lang.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
- Version:
- $Id$
- Author:
- Dain Sundstrom
- See Also:
- Serialized Form
Constructor Summary |
KernelErrorsError(java.util.List errors)
Creates an Errors error containing the list of errors. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KernelErrorsError
public KernelErrorsError(java.util.List errors)
- Creates an Errors error containing the list of errors.
- Parameters:
errors
- the errors
getErrors
public java.util.List getErrors()
- Gets the errors that casued this error.
- Returns:
- the errors that casued this error
getMessage
public java.lang.String getMessage()
getLocalizedMessage
public java.lang.String getLocalizedMessage()
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.