Class ComponentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.avalon.framework.CascadingException
org.apache.avalon.framework.component.ComponentException
- All Implemented Interfaces:
Serializable
,CascadingThrowable
The exception thrown to indicate a problem with Components.
It is usually thrown by ComponentManager or ComponentSelector.
Deprecated:
Use ServiceException
instead.
- Version:
- CVS $Revision: 1.22 $ $Date: 2004/02/11 14:34:24 $
- Author:
- Avalon Development Team
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComponentException
(String message) Deprecated.use the String, String version to record the roleComponentException
(String key, String message) Construct a newComponentException
instance.ComponentException
(String key, String message, Throwable throwable) Construct a newComponentException
instance.ComponentException
(String message, Throwable throwable) Deprecated.use the String, String, Throwable version to record the role -
Method Summary
Methods inherited from class org.apache.avalon.framework.CascadingException
getCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ComponentException
Construct a newComponentException
instance.- Parameters:
key
- the lookup keymessage
- the exception messagethrowable
- the throwable
-
ComponentException
Deprecated.use the String, String, Throwable version to record the roleConstruct a newComponentException
instance.- Parameters:
message
- the exception messagethrowable
- the throwable
-
ComponentException
Deprecated.use the String, String version to record the roleConstruct a newComponentException
instance.- Parameters:
message
- the exception message
-
ComponentException
Construct a newComponentException
instance.- Parameters:
key
- the lookup keymessage
- the exception message
-
-
Method Details
-
getKey
Get the key which let to the exception. May be null.- Returns:
- The key which let to the exception.
-
getRole
Deprecated.Use getKey insteadGet the key which let to the exception. May be null.- Returns:
- The key which let to the exception.
-
getMessage
Return a message describing the exception.- Overrides:
getMessage
in classThrowable
- Returns:
- exception message.
-