org.apache.avalon.framework
Class CascadingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.avalon.framework.CascadingException
All Implemented Interfaces:
java.io.Serializable, CascadingThrowable
Direct Known Subclasses:
ComponentException, ConfigurationException, ContextException, ParameterException, ServiceException

public class CascadingException
extends java.lang.Exception
implements CascadingThrowable

Class from which all exceptions should inherit. Allows recording of nested exceptions.

Version:
$Id: CascadingException.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Author:
Avalon Development Team
See Also:
Serialized Form

Field Summary
private  java.lang.Throwable m_throwable
          The Throwable that caused this exception to be thrown.
 
Constructor Summary
CascadingException(java.lang.String message)
          Construct a new CascadingException instance.
CascadingException(java.lang.String message, java.lang.Throwable throwable)
          Construct a new CascadingException instance.
 
Method Summary
 java.lang.Throwable getCause()
          Retrieve root cause of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_throwable

private final java.lang.Throwable m_throwable
The Throwable that caused this exception to be thrown.

Constructor Detail

CascadingException

public CascadingException(java.lang.String message)
Construct a new CascadingException instance.

Parameters:
message - The detail message for this exception.

CascadingException

public CascadingException(java.lang.String message,
                          java.lang.Throwable throwable)
Construct a new CascadingException instance.

Parameters:
message - The detail message for this exception.
throwable - the root cause of the exception
Method Detail

getCause

public final java.lang.Throwable getCause()
Retrieve root cause of the exception.

Specified by:
getCause in interface CascadingThrowable
Overrides:
getCause in class java.lang.Throwable
Returns:
the root cause