public class TransactionInProgressException extends JMSException
Session.commit
when a session is part of a distributed transaction should throw a
TransactionInProgressException
.Constructor and Description |
---|
TransactionInProgressException(String reason)
Constructs a
TransactionInProgressException with the specified reason. |
TransactionInProgressException(String reason,
String errorCode)
Constructs a
TransactionInProgressException with the specified reason and error code. |
getErrorCode, getLinkedException, setLinkedException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TransactionInProgressException(String reason, String errorCode)
TransactionInProgressException
with the specified reason and error code.reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific error codepublic TransactionInProgressException(String reason)
TransactionInProgressException
with the specified reason. The error code defaults to null.reason
- a description of the exceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.