Class MomExceptionReply

    • Constructor Detail

      • MomExceptionReply

        public MomExceptionReply​(int correlationId,
                                 MomException exc)
        Constructs a MomExceptionReply instance.
        Parameters:
        correlationId - Identifier of the failed request.
        exc - The resulting exception.
      • MomExceptionReply

        public MomExceptionReply​(MomException exc)
        Constructs a MomExceptionReply instance.
        Parameters:
        exc - The exception to wrap.
      • MomExceptionReply

        public MomExceptionReply()
        Public no-arg constructor needed by Externalizable.
    • Method Detail

      • getType

        public int getType()
        Returns the type of exception wrapped by this reply.
        Returns:
        The type of exception wrapped by this reply.
      • getMessage

        public String getMessage()
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        The object implements the readFrom method to restore its contents from the input stream.
        Specified by:
        readFrom in interface Streamable
        Overrides:
        readFrom in class AbstractJmsReply
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.