Package javax.jms

Class TransactionInProgressRuntimeException

All Implemented Interfaces:
Serializable

public class TransactionInProgressRuntimeException extends JMSRuntimeException

This unchecked exception is thrown when an operation is invalid because a transaction is in progress. For instance, an attempt to call JMSContext.commit when the context is part of a distributed transaction should throw a TransactionInProgressRuntimeException.

Since:
JMS 2.0
See Also:
  • Constructor Details

    • TransactionInProgressRuntimeException

      public TransactionInProgressRuntimeException(String detailMessage)
      Constructs a TransactionInProgressRuntimeException with the specified detail message
      Parameters:
      detailMessage - a description of the exception
    • TransactionInProgressRuntimeException

      public TransactionInProgressRuntimeException(String detailMessage, String errorCode)
      Constructs a TransactionInProgressRuntimeException with the specified detail message and error code.
      Parameters:
      detailMessage - a description of the exception
      errorCode - a provider-specific error code
    • TransactionInProgressRuntimeException

      public TransactionInProgressRuntimeException(String detailMessage, String errorCode, Throwable cause)
      Constructs a TransactionInProgressRuntimeException 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