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, setStackTrace
protected KeyedMessage msg
public KeyedException(KeyedMessage message)
message
- a KeyedMessage
public KeyedException(KeyedMessage message, Throwable cause)
message
- a KeyedMessage
cause
- a Throwable
public String getMessage()
getMessage
in class Throwable
public KeyedMessage getMsg()
KeyedMessage
Copyright © 2017. All rights reserved.