public class KeyedException extends Exception
Exception with a KeyedMessage
instead of a string.| Modifier and Type | Field and Description |
|---|---|
protected KeyedMessage |
msg |
| Constructor and Description |
|---|
KeyedException(KeyedMessage message)
Construct an exception with a keyed message.
|
KeyedException(KeyedMessage message,
Throwable cause)
Construct an exception with a keyed message and the causing exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
KeyedMessage |
getMsg()
Return the keyed message describing the exception.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected KeyedMessage msg
public KeyedException(KeyedMessage message)
message - a KeyedMessagepublic KeyedException(KeyedMessage message, Throwable cause)
message - a KeyedMessagecause - a Throwablepublic String getMessage()
getMessage in class Throwablepublic KeyedMessage getMsg()
KeyedMessageCopyright © 2017. All rights reserved.