org.apache.avalon.framework.component
Class ComponentException
- CascadingThrowable
public class ComponentException
The exception thrown to indicate a problem with Components.
It is usually thrown by ComponentManager or ComponentSelector.
Deprecated:
Use ServiceException instead.
Version:
- Avalon Development Team
ComponentException(String message)- use the String, String version to record the role
|
ComponentException(String key, String message)- Construct a new
ComponentException instance.
|
ComponentException(String key, String message, Throwable throwable)- Construct a new
ComponentException instance.
|
ComponentException(String message, Throwable throwable)- use the String, String, Throwable version to record the role
|
String | getKey()- Get the key which let to the exception.
|
String | getMessage()- Return a message describing the exception.
|
String | getRole()- Use getKey instead
|
ComponentException
public ComponentException(String message)
use the String, String version to record the role
Construct a new ComponentException instance.
message - the exception message
ComponentException
public ComponentException(String key,
String message) Construct a new ComponentException instance.
key - the lookup keymessage - the exception message
ComponentException
public ComponentException(String key,
String message,
Throwable throwable) Construct a new ComponentException instance.
key - the lookup keymessage - the exception messagethrowable - the throwable
ComponentException
public ComponentException(String message,
Throwable throwable)use the String, String, Throwable version to record the role
Construct a new ComponentException instance.
message - the exception messagethrowable - the throwable
getKey
public final String getKey()
Get the key which let to the exception. May be null.
- The key which let to the exception.
getMessage
public String getMessage()
Return a message describing the exception.
- exception message.
getRole
public final String getRole()
Use getKey instead
Get the key which let to the exception. May be null.
- The key which let to the exception.
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."