java.io.Serializable
, CascadingThrowable
public class ComponentException extends CascadingException
Deprecated:
Use ServiceException
instead.
Constructor | Description |
---|---|
ComponentException(java.lang.String message) |
Deprecated.
use the String, String version to record the role
|
ComponentException(java.lang.String key,
java.lang.String message) |
Construct a new
ComponentException instance. |
ComponentException(java.lang.String key,
java.lang.String message,
java.lang.Throwable throwable) |
Construct a new
ComponentException instance. |
ComponentException(java.lang.String message,
java.lang.Throwable throwable) |
Deprecated.
use the String, String, Throwable version to record the role
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getKey() |
Get the key which let to the exception.
|
java.lang.String |
getMessage() |
Return a message describing the exception.
|
java.lang.String |
getRole() |
Deprecated.
Use getKey instead
|
getCause
public ComponentException(java.lang.String key, java.lang.String message, java.lang.Throwable throwable)
ComponentException
instance.key
- the lookup keymessage
- the exception messagethrowable
- the throwablepublic ComponentException(java.lang.String message, java.lang.Throwable throwable)
ComponentException
instance.message
- the exception messagethrowable
- the throwablepublic ComponentException(java.lang.String message)
ComponentException
instance.message
- the exception messagepublic ComponentException(java.lang.String key, java.lang.String message)
ComponentException
instance.key
- the lookup keymessage
- the exception messagepublic final java.lang.String getKey()
public final java.lang.String getRole()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable