Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.avalon.framework.CascadingException
org.apache.avalon.framework.service.ServiceException
- All Implemented Interfaces:
Serializable
,CascadingThrowable
The exception thrown to indicate a problem with service.
It is usually thrown by ServiceManager or ServiceSelector.
- Version:
- CVS $Revision: 1.21 $ $Date: 2004/02/11 14:34:25 $
- Author:
- Avalon Development Team
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceException
(String message) Deprecated.use the String,String version insteadServiceException
(String key, String message) Construct a newServiceException
instance.ServiceException
(String key, String message, Throwable throwable) Construct a newServiceException
instance.ServiceException
(String message, Throwable throwable) Deprecated.use the String,String,Throwable version instead -
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
-
ServiceException
Deprecated.use the String,String,Throwable version insteadConstruct a newServiceException
instance.- Parameters:
message
- the exception messagethrowable
- the throwable
-
ServiceException
Construct a newServiceException
instance.- Parameters:
key
- the lookup keymessage
- the exception messagethrowable
- the throwable
-
ServiceException
Deprecated.use the String,String version insteadConstruct a newServiceException
instance.- Parameters:
message
- the exception message
-
ServiceException
Construct a newServiceException
instance.- Parameters:
key
- the lookup keymessage
- the exception message
-
-
Method Details
-
getKey
Return the key that caused the exception.- Returns:
- the lookup key triggering the exception
-
getRole
Deprecated.Use getKey() insteadReturn the role that caused the exception- Returns:
- the the lookup key triggering the exception
-
getMessage
Override super's message to add role if applicable.- Overrides:
getMessage
in classThrowable
- Returns:
- a message.
-