public class ServiceException extends CascadingException
| Constructor and Description |
|---|
ServiceException(String message)
Deprecated.
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)
Deprecated.
use the String,String,Throwable version instead
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Return the key that caused the exception.
|
String |
getMessage()
Override super's message to add role if applicable.
|
String |
getRole()
Deprecated.
Use getKey() instead
|
getCauseaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceException(String message, Throwable throwable)
ServiceException instance.message - the exception messagethrowable - the throwablepublic ServiceException(String key, String message, Throwable throwable)
ServiceException instance.key - the lookup keymessage - the exception messagethrowable - the throwablepublic ServiceException(String message)
ServiceException instance.message - the exception messagepublic String getKey()
public String getRole()
public String getMessage()
getMessage in class ThrowableCopyright © 2021. All rights reserved.