case ActionStatus.ABORTED:
case ActionStatus.ABORTING:
RollbackException rollbackException = new RollbackException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted"));
if(_rollbackOnlyCallerStacktrace != null) {
// we rolled back beacuse the user explicitly told us not to commit. Attach the trace of who did that for debug:
rollbackException.initCause(_rollbackOnlyCallerStacktrace);
}
else if(_theTransaction.getDeferredThrowable() != null) {
// we tried to commit but it went wrong - attach the reason for debug:
rollbackException.initCause(_theTransaction.getDeferredThrowable());
}