This exception is thrown when an
operation is invalid because a transaction is in progress.
For instance, an attempt to call Session.commit when a
session is part of a distributed transaction should throw a
TransactionInProgressException.
public TransactionInProgressException(String reason, String errorCode)(Code)
Constructs a TransactionInProgressException with the
specified reason and error code.
Parameters: reason - a description of the exception Parameters: errorCode - a string specifying the vendor-specificerror code
TransactionInProgressException
public TransactionInProgressException(String reason)(Code)
Constructs a TransactionInProgressException with the
specified reason. The error code defaults to null.
Parameters: reason - a description of the exception