Package jakarta.jms

Class TransactionRolledBackRuntimeException

  • All Implemented Interfaces:
    Serializable

    public class TransactionRolledBackRuntimeException
    extends JMSRuntimeException
    This unchecked exception must be thrown when a call to JMSContext.commit results in a rollback of the current transaction.
    Since:
    JMS 2.0
    Version:
    Jakarta Messaging 2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • TransactionRolledBackRuntimeException

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

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

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