Package jakarta.jms

Class MessageNotWriteableRuntimeException

All Implemented Interfaces:
Serializable

public class MessageNotWriteableRuntimeException extends JMSRuntimeException
This unchecked exception must be thrown when a Jakarta Messaging client attempts to write to a read-only message.
Since:
JMS 2.0
See Also:
  • Constructor Details

    • MessageNotWriteableRuntimeException

      public MessageNotWriteableRuntimeException(String reason, String errorCode)
      Constructs a MessageNotWriteableRuntimeException with the specified reason and error code.
      Parameters:
      reason - a description of the exception
      errorCode - a string specifying the vendor-specific error code
    • MessageNotWriteableRuntimeException

      public MessageNotWriteableRuntimeException(String reason)
      Constructs a MessageNotWriteableRuntimeException with the specified reason. The error code defaults to null.
      Parameters:
      reason - a description of the exception
    • MessageNotWriteableRuntimeException

      public MessageNotWriteableRuntimeException(String detailMessage, String errorCode, Throwable cause)
      Constructs a MessageNotWriteableRuntimeException with the specified detail message, error code and cause
      Parameters:
      detailMessage - a description of the exception
      errorCode - a provider-specific error code
      cause - the underlying cause of this exception