Top Description Fields Constructors Methods
javax.jms

public Class TransactionInProgressRuntimeException

extends JMSRuntimeException
Class Inheritance

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
Version
JMS 2.0

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.jms.JMSRuntimeException.serialVersionUID.

Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version

Constructor Summary

AccessConstructor and Description
public
TransactionInProgressRuntimeException(String
a description of the exception
detailMessage
)

Constructs a TransactionInProgressRuntimeException with the specified detail message

public
TransactionInProgressRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
)

Constructs a TransactionInProgressRuntimeException with the specified detail message and error code.

public
TransactionInProgressRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
,
Throwable
the underlying cause of this exception
cause
)

Constructs a TransactionInProgressRuntimeException with the specified detail message, error code and cause

Method Summary

Inherited from javax.jms.JMSRuntimeException:
getErrorCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.jms.JMSRuntimeException.serialVersionUID.

Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version

Constructor Detail

TransactionInProgressRuntimeExceptionback to summary
public TransactionInProgressRuntimeException(String detailMessage)

Constructs a TransactionInProgressRuntimeException with the specified detail message

Parameters
detailMessage:String

a description of the exception

TransactionInProgressRuntimeExceptionback to summary
public TransactionInProgressRuntimeException(String detailMessage, String errorCode)

Constructs a TransactionInProgressRuntimeException with the specified detail message and error code.

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

TransactionInProgressRuntimeExceptionback to summary
public TransactionInProgressRuntimeException(String detailMessage, String errorCode, Throwable cause)

Constructs a TransactionInProgressRuntimeException with the specified detail message, error code and cause

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

cause:Throwable

the underlying cause of this exception