Top Description Fields Constructors Methods
org.apache.avalon.framework

public Class CascadingException

extends Exception
implements CascadingThrowable
Class Inheritance
All Implemented Interfaces
org.apache.avalon.framework.CascadingThrowable
Known Direct Subclasses
org.apache.avalon.framework.component.ComponentException, org.apache.avalon.framework.configuration.ConfigurationException, org.apache.avalon.framework.context.ContextException, org.apache.avalon.framework.parameters.ParameterException, org.apache.avalon.framework.service.ServiceException

Class from which all exceptions should inherit. Allows recording of nested exceptions.
Author
Avalon Development Team
Version
$Id: CascadingException.java 506231 2007-02-12 02:36:54Z crossley $

Field Summary

Modifier and TypeField and Description
private final Throwable
m_throwable

The Throwable that caused this exception to be thrown.

Constructor Summary

AccessConstructor and Description
public
CascadingException(final String
The detail message for this exception.
message
)

Construct a new CascadingException instance.

public
CascadingException(final String
The detail message for this exception.
message
,
final Throwable
the root cause of the exception
throwable
)

Construct a new CascadingException instance.

Method Summary

Modifier and TypeMethod and Description
public final Throwable

Returns:

the root cause
getCause
()

Overrides java.lang.Throwable.getCause.

Implements org.apache.avalon.framework.CascadingThrowable.getCause.

Retrieve root cause of the exception.

Field Detail

m_throwableback to summary
private final Throwable m_throwable

The Throwable that caused this exception to be thrown.

Constructor Detail

CascadingExceptionback to summary
public CascadingException(final String message)

Construct a new CascadingException instance.

Parameters
message:String

The detail message for this exception.

CascadingExceptionback to summary
public CascadingException(final String message, final Throwable throwable)

Construct a new CascadingException instance.

Parameters
message:String

The detail message for this exception.

throwable:Throwable

the root cause of the exception

Method Detail

getCauseback to summary
public final Throwable getCause()

Overrides java.lang.Throwable.getCause.

Implements org.apache.avalon.framework.CascadingThrowable.getCause.

Retrieve root cause of the exception.

Returns:Throwable

the root cause