java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.jms.JMSRuntimeException
jakarta.jms.MessageFormatRuntimeException
- All Implemented Interfaces:
Serializable
This unchecked exception must be thrown when a Jakarta Messaging 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:
- Jakarta Messaging 2.0
- See Also:
-
Constructor Summary
ConstructorDescriptionMessageFormatRuntimeException
(String detailMessage) Constructs aMessageFormatRuntimeException
with the specified detail messageMessageFormatRuntimeException
(String detailMessage, String errorCode) Constructs aMessageFormatRuntimeException
with the specified detail message and error code.MessageFormatRuntimeException
(String detailMessage, String errorCode, Throwable cause) Constructs aMessageFormatRuntimeException
with the specified detail message, error code and cause -
Method Summary
Methods inherited from class jakarta.jms.JMSRuntimeException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MessageFormatRuntimeException
Constructs aMessageFormatRuntimeException
with the specified detail message- Parameters:
detailMessage
- a description of the exception
-
MessageFormatRuntimeException
-
MessageFormatRuntimeException
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
-