Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
CascadingException
org.apache.avalon.framework.component.ComponentException
public class ComponentException
extends CascadingException
ServiceException
instead.
Constructor Summary | |
| |
| |
| |
|
Method Summary | |
String |
|
String |
|
String |
|
public ComponentException(String message)
Deprecated. use the String, String version to record the role
Construct a newComponentException
instance.
- Parameters:
message
- the exception message
public ComponentException(String key, String message)
Construct a newComponentException
instance.
- Parameters:
key
- the lookup keymessage
- the exception message
public ComponentException(String key, String message, Throwable throwable)
Construct a newComponentException
instance.
- Parameters:
key
- the lookup keymessage
- the exception messagethrowable
- the throwable
public ComponentException(String message, Throwable throwable)
Deprecated. use the String, String, Throwable version to record the role
Construct a newComponentException
instance.
- Parameters:
message
- the exception messagethrowable
- the throwable
public final String getKey()
Get the key which let to the exception. May be null.
- Returns:
- The key which let to the exception.
public String getMessage()
Return a message describing the exception.
- Returns:
- exception message.
public final String getRole()
Deprecated. Use getKey instead
Get the key which let to the exception. May be null.
- Returns:
- The key which let to the exception.