org.apache.xbean.kernel
Class KernelErrorsError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by 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.
 
Method Summary
 List getErrors()
          Gets the errors that casued this error.
 String getLocalizedMessage()
           
 String getMessage()
           
 void printStackTrace(PrintStream stream)
           
 void printStackTrace(PrintWriter writer)
           
 
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
 

Constructor Detail

KernelErrorsError

public KernelErrorsError(List errors)
Creates an Errors error containing the list of errors.

Parameters:
errors - the errors
Method Detail

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.