Package javax.jms
Class TransactionInProgressRuntimeException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- javax.jms.JMSRuntimeException
- 
- javax.jms.TransactionInProgressRuntimeException
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.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 callJMSContext.commitwhen the context is part of a distributed transaction should throw aTransactionInProgressRuntimeException.- Since:
- JMS 2.0
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description TransactionInProgressRuntimeException(java.lang.String detailMessage)Constructs aTransactionInProgressRuntimeExceptionwith the specified detail messageTransactionInProgressRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)Constructs aTransactionInProgressRuntimeExceptionwith the specified detail message and error code.TransactionInProgressRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)Constructs aTransactionInProgressRuntimeExceptionwith the specified detail message, error code and cause
 - 
Method Summary- 
Methods inherited from class javax.jms.JMSRuntimeExceptiongetErrorCode
 
- 
 
- 
- 
- 
Constructor Detail- 
TransactionInProgressRuntimeExceptionpublic TransactionInProgressRuntimeException(java.lang.String detailMessage) Constructs aTransactionInProgressRuntimeExceptionwith the specified detail message- Parameters:
- detailMessage- a description of the exception
 
 - 
TransactionInProgressRuntimeExceptionpublic TransactionInProgressRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)Constructs aTransactionInProgressRuntimeExceptionwith the specified detail message and error code.- Parameters:
- detailMessage- a description of the exception
- errorCode- a provider-specific error code
 
 - 
TransactionInProgressRuntimeExceptionpublic TransactionInProgressRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)Constructs aTransactionInProgressRuntimeExceptionwith 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
 
 
- 
 
-