@Immutable public class MessageImpl extends Object implements Message
Modifier | Constructor and Description |
---|---|
|
MessageImpl(String message,
Throwable throwable)
Create a new message
|
protected |
MessageImpl(String message,
Throwable throwable,
String stackTrace)
Create a new message
|
Modifier and Type | Method and Description |
---|---|
String |
getFormattedMessage()
Get the formatted message string with additional informations.
|
String |
getMessage()
Get the message string
|
String |
getStackTrace()
Get the associated stack trace if any
|
Throwable |
getThrowable()
Get the associated throwable.
|
public MessageImpl(String message, Throwable throwable)
message
- the message stringthrowable
- the associated throwable, may be null
public String getMessage()
Message
getMessage
in interface Message
Message.getMessage()
public String getStackTrace()
Message
getStackTrace
in interface Message
null
Message.getStackTrace()
public Throwable getThrowable()
Message
Message.getStackTrace()
instead if possible.getThrowable
in interface Message
null
Message.getThrowable()
public String getFormattedMessage()
Message
getFormattedMessage
in interface Message
Message.getFormattedMessage()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a