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
|
getCause
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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 Throwable
Copyright © 2024. All rights reserved.