Top Description Fields Constructors Methods
javax.jms

public Class MessageFormatRuntimeException

extends JMSRuntimeException
Class Inheritance

This unchecked exception must be thrown when a JMS application attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type, and the method signature does not permit a 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.
Since
JMS 2.0
Version
JMS 2.0

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.jms.JMSRuntimeException.serialVersionUID.

Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version

Constructor Summary

AccessConstructor and Description
public
MessageFormatRuntimeException(String
a description of the exception
detailMessage
)

Constructs a MessageFormatRuntimeException with the specified detail message

public
MessageFormatRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
)

Constructs a MessageFormatRuntimeException with the specified detail message and error code.

public
MessageFormatRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
,
Throwable
the underlying cause of this exception
cause
)

Constructs a MessageFormatRuntimeException with the specified detail message, error code and cause

Method Summary

Inherited from javax.jms.JMSRuntimeException:
getErrorCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.jms.JMSRuntimeException.serialVersionUID.

Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version

Constructor Detail

MessageFormatRuntimeExceptionback to summary
public MessageFormatRuntimeException(String detailMessage)

Constructs a MessageFormatRuntimeException with the specified detail message

Parameters
detailMessage:String

a description of the exception

MessageFormatRuntimeExceptionback to summary
public MessageFormatRuntimeException(String detailMessage, String errorCode)

Constructs a MessageFormatRuntimeException with the specified detail message and error code.

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

MessageFormatRuntimeExceptionback to summary
public MessageFormatRuntimeException(String detailMessage, String errorCode, Throwable cause)

Constructs a MessageFormatRuntimeException with the specified detail message, error code and cause

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

cause:Throwable

the underlying cause of this exception