Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
CascadingException
org.apache.avalon.framework.service.ServiceException
public class ServiceException
extends CascadingException
Constructor Summary | |
| |
| |
| |
|
Method Summary | |
String |
|
String |
|
String |
|
public ServiceException(String message)
Deprecated. use the String,String version instead
Construct a newServiceException
instance.
- Parameters:
message
- the exception message
public ServiceException(String key, String message)
Construct a newServiceException
instance.
- Parameters:
key
- the lookup keymessage
- the exception message
public ServiceException(String key, String message, Throwable throwable)
Construct a newServiceException
instance.
- Parameters:
key
- the lookup keymessage
- the exception messagethrowable
- the throwable
public ServiceException(String message, Throwable throwable)
Deprecated. use the String,String,Throwable version instead
Construct a newServiceException
instance.
- Parameters:
message
- the exception messagethrowable
- the throwable
public String getKey()
Return the key that caused the exception.
- Returns:
- the lookup key triggering the exception
public String getMessage()
Override super's message to add role if applicable.
- Returns:
- a message.
public String getRole()
Deprecated. Use getKey() instead
Return the role that caused the exception
- Returns:
- the the lookup key triggering the exception