public class ComponentException extends CascadingException
Deprecated:
Use ServiceException
instead.
Constructor and Description |
---|
ComponentException(String message)
Deprecated.
use the String, String version to record the role
|
ComponentException(String key,
String message)
Construct a new
ComponentException instance. |
ComponentException(String key,
String message,
Throwable throwable)
Construct a new
ComponentException instance. |
ComponentException(String message,
Throwable throwable)
Deprecated.
use the String, String, Throwable version to record the role
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Get the key which let to the exception.
|
String |
getMessage()
Return a message describing the exception.
|
String |
getRole()
Deprecated.
Use getKey instead
|
getCause
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ComponentException(String key, String message, Throwable throwable)
ComponentException
instance.key
- the lookup keymessage
- the exception messagethrowable
- the throwablepublic ComponentException(String message, Throwable throwable)
ComponentException
instance.message
- the exception messagethrowable
- the throwablepublic ComponentException(String message)
ComponentException
instance.message
- the exception messagepublic final String getKey()
public final String getRole()
public String getMessage()
getMessage
in class Throwable
Copyright © 2024. All rights reserved.