Class DetailedMessageEOFException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.jms.JMSException
jakarta.jms.MessageEOFException
com.ibm.msg.client.jakarta.jms.DetailedMessageEOFException
- All Implemented Interfaces:
JmsExceptionDetail, Serializable
public class DetailedMessageEOFException
extends jakarta.jms.MessageEOFException
implements JmsExceptionDetail
DetailedMessageEOFException is a subclass of MessageEOFException that provides methods to get the
message id, explanation, user action and inserts of the translatable message inside the
MessageEOFException. When the IBM MQ classes for JMS client throws a MessageEOFException,
applications can cast it to a DetailedMessageEOFException to get this extra information.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an explanation of the message in this exception.getKeys()Gets an iterator for all the message insert keys for the message in this exception.Gets a user response to the message in this exception.Gets the message insert corresponding to a particular key for the translatable message in this exception.voidAdds a linked exception.toString()Returns a short description of this exceptionMethods inherited from class jakarta.jms.JMSException
getErrorCode, getLinkedExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DetailedMessageEOFException
public DetailedMessageEOFException()
-
-
Method Details
-
getExplanation
Gets an explanation of the message in this exception. This may be null.- Specified by:
getExplanationin interfaceJmsExceptionDetail- Returns:
- the explanation
- See Also:
-
getUserAction
Gets a user response to the message in this exception. This may be null.- Specified by:
getUserActionin interfaceJmsExceptionDetail- Returns:
- the user action
- See Also:
-
getValue
Gets the message insert corresponding to a particular key for the translatable message in this exception. The key is a message insert constant or a property constant that is valid for this message. The valid keys for this message can be obtained using getKeys(). This method will return null if the key is not valid for this message.- Specified by:
getValuein interfaceJmsExceptionDetail- Parameters:
insertKey- a message insert constant or property constant valid for this message- Returns:
- the insert
- See Also:
-
getKeys
Gets an iterator for all the message insert keys for the message in this exception. The keys are the property constants or message insert constants that are valid for this message. This enables applications to discover which keys are valid for this message.- Specified by:
getKeysin interfaceJmsExceptionDetail- Returns:
- the iterator for the message insert keys
- See Also:
-
setLinkedException
Adds a linked exception.- Overrides:
setLinkedExceptionin classjakarta.jms.JMSException- Parameters:
ex- the linked Exception- See Also:
-
toString
-