public class ServiceException extends CascadingException
| Constructor and Description |
|---|
ServiceException(java.lang.String message)
Deprecated.
use the String,String version instead
|
ServiceException(java.lang.String key,
java.lang.String message)
Construct a new
ServiceException instance. |
ServiceException(java.lang.String key,
java.lang.String message,
java.lang.Throwable throwable)
Construct a new
ServiceException instance. |
ServiceException(java.lang.String message,
java.lang.Throwable throwable)
Deprecated.
use the String,String,Throwable version instead
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Return the key that caused the exception.
|
java.lang.String |
getMessage()
Override super's message to add role if applicable.
|
java.lang.String |
getRole()
Deprecated.
Use getKey() instead
|
getCausepublic ServiceException(java.lang.String message,
java.lang.Throwable throwable)
ServiceException instance.message - the exception messagethrowable - the throwablepublic ServiceException(java.lang.String key,
java.lang.String message,
java.lang.Throwable throwable)
ServiceException instance.key - the lookup keymessage - the exception messagethrowable - the throwablepublic ServiceException(java.lang.String message)
ServiceException instance.message - the exception messagepublic ServiceException(java.lang.String key,
java.lang.String message)
ServiceException instance.key - the lookup keymessage - the exception messagepublic java.lang.String getKey()
public java.lang.String getRole()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable