public class MessageFormatRuntimeException extends JMSRuntimeException
MessageFormatException
to be thrown.
It must also be thrown when equivalent type errors are made with message
property values. Note that the special case of a failure caused by an attempt to read improperly formatted
String
data as numeric values must throw the java.lang.NumberFormatException
.
Constructor and Description |
---|
MessageFormatRuntimeException(java.lang.String detailMessage)
Constructs a
MessageFormatRuntimeException with the specified detail message |
MessageFormatRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode)
Constructs a
MessageFormatRuntimeException with the specified detail message and error code. |
MessageFormatRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode,
java.lang.Throwable cause)
Constructs a
MessageFormatRuntimeException with the specified detail message, error code and cause |
getErrorCode
public MessageFormatRuntimeException(java.lang.String detailMessage)
MessageFormatRuntimeException
with the specified detail messagedetailMessage
- a description of the exceptionpublic MessageFormatRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)
MessageFormatRuntimeException
with the specified detail message and error code.detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codepublic MessageFormatRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)
MessageFormatRuntimeException
with the specified detail message, error code and causedetailMessage
- a description of the exceptionerrorCode
- a provider-specific error codecause
- the underlying cause of this exception