Package javax.jms
Class MessageFormatRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.jms.JMSRuntimeException
-
- javax.jms.MessageFormatRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class MessageFormatRuntimeException extends JMSRuntimeException
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 aMessageFormatException
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 formattedString
data as numeric values must throw thejava.lang.NumberFormatException
.- Since:
- JMS 2.0
- Version:
- JMS 2.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version
-
Constructor Summary
Constructors Constructor Description MessageFormatRuntimeException(java.lang.String detailMessage)
Constructs aMessageFormatRuntimeException
with the specified detail messageMessageFormatRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)
Constructs aMessageFormatRuntimeException
with the specified detail message and error code.MessageFormatRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)
Constructs aMessageFormatRuntimeException
with the specified detail message, error code and cause
-
Method Summary
-
Methods inherited from class javax.jms.JMSRuntimeException
getErrorCode
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageFormatRuntimeException
public MessageFormatRuntimeException(java.lang.String detailMessage)
Constructs aMessageFormatRuntimeException
with the specified detail message- Parameters:
detailMessage
- a description of the exception
-
MessageFormatRuntimeException
public MessageFormatRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)
Constructs aMessageFormatRuntimeException
with the specified detail message and error code.- Parameters:
detailMessage
- a description of the exceptionerrorCode
- a provider-specific error code
-
MessageFormatRuntimeException
public MessageFormatRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)
Constructs aMessageFormatRuntimeException
with the specified detail message, error code and cause- Parameters:
detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codecause
- the underlying cause of this exception
-
-