use of javax.transaction.InvalidTransactionException in project tomee by apache.
the class JtaTransactionPolicy method resumeTransaction.
protected void resumeTransaction(final Transaction tx) throws SystemException {
try {
if (tx == null) {
txLogger.debug("TX {0}: No transaction to resume", transactionType);
} else {
txLogger.debug("TX {0}: Resuming transaction {1}", transactionType, tx);
transactionManager.resume(tx);
}
} catch (final InvalidTransactionException ite) {
txLogger.error("Could not resume the client's transaction, the transaction is no longer valid: {0}", ite.getMessage());
throw new SystemException(ite);
} catch (final IllegalStateException e) {
txLogger.error("Could not resume the client's transaction: {0}", e.getMessage());
throw new SystemException(e);
} catch (final javax.transaction.SystemException e) {
txLogger.error("Could not resume the client's transaction: The transaction reported a system exception: {0}", e.getMessage());
throw new SystemException(e);
}
}
Aggregations