public class MessageProcessingException
extends java.lang.RuntimeException
Constructor and Description |
---|
MessageProcessingException(java.lang.String key)
Create Exception.
|
MessageProcessingException(java.lang.String messageId,
java.lang.Object[] params)
Constructs a new exception with the specified message ID and parameters.
|
MessageProcessingException(java.lang.String key,
java.lang.Throwable t)
Create Exception.
|
MessageProcessingException(java.lang.String messageId,
java.lang.Throwable cause,
java.lang.Object[] params)
Constructs a new exception with passed message ID, cause, and parameters.
|
MessageProcessingException(java.lang.Throwable t)
Create Exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the detail message string associated with the message ID for the
current locale.
|
java.lang.String |
getMessage(java.util.Locale locale)
Returns the detail message string associated with the message ID for the
requested locale, if available.
|
java.lang.String |
getMessageId()
Returns the message ID that was passed in on creation, if any.
|
java.lang.String |
toString()
In addition, the message ID is included as a separate field from the
message itself if those are distinct.
|
public MessageProcessingException(java.lang.String key)
key
- the keypublic MessageProcessingException(java.lang.String key, java.lang.Throwable t)
key
- the keyt
- the tpublic MessageProcessingException(java.lang.Throwable t)
t
- the tpublic MessageProcessingException(java.lang.String messageId, java.lang.Object[] params)
messageId
- params
- public MessageProcessingException(java.lang.String messageId, java.lang.Throwable cause, java.lang.Object[] params)
messageId
- cause
- params
- public java.lang.String getMessageId()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getMessage(java.util.Locale locale)
public java.lang.String toString()
toString
in class java.lang.Throwable