org.apache.avalon.framework.service
Class ServiceException
- CascadingThrowable
public class ServiceException
The exception thrown to indicate a problem with service.
It is usually thrown by ServiceManager or ServiceSelector.
Version:
- Avalon Development Team
ServiceException(String message) - use the String,String version instead
|
ServiceException(String key, String message) - Construct a new
ServiceException instance.
|
ServiceException(String key, String message, Throwable throwable) - Construct a new
ServiceException instance.
|
ServiceException(String message, Throwable throwable) - use the String,String,Throwable version instead
|
String | getKey() - Return the key that caused the exception.
|
String | getMessage() - Override super's message to add role if applicable.
|
String | getRole() - Use getKey() instead
|
ServiceException
public ServiceException(String message)
use the String,String version instead
Construct a new ServiceException
instance.
message
- the exception message
ServiceException
public ServiceException(String key,
String message)
Construct a new ServiceException
instance.
key
- the lookup keymessage
- the exception message
ServiceException
public ServiceException(String key,
String message,
Throwable throwable)
Construct a new ServiceException
instance.
key
- the lookup keymessage
- the exception messagethrowable
- the throwable
ServiceException
public ServiceException(String message,
Throwable throwable)
use the String,String,Throwable version instead
Construct a new ServiceException
instance.
message
- the exception messagethrowable
- the throwable
getKey
public String getKey()
Return the key that caused the exception.
- the lookup key triggering the exception
getMessage
public String getMessage()
Override super's message to add role if applicable.
- a message.
getRole
public String getRole()
Use getKey() instead
Return the role that caused the exception
- the the lookup key triggering the exception
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."