org.apache.xbean.kernel
Class KernelErrorsError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.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.
 
Method Summary
 java.util.List getErrors()
          Gets the errors that casued this error.
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.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(java.util.List errors)
Creates an Errors error containing the list of errors.

Parameters:
errors - the errors
Method Detail

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.