writer.fine(exception, e); RollbackException rbEx = new RollbackException(exception); rbEx.initCause(e); throw rbEx; } finally {
statusRef.set(Status.STATUS_ROLLEDBACK); final RollbackException e = Log.log.transactionRolledBackByPeer(); e.initCause(RemoteExceptionCause.readFromStream(is)); throw e; } else if (id == Protocol.P_UT_SYS_EXC) {
writer.fine(exception, e); RollbackException re = new RollbackException(exception); re.initCause(e); throw re;
private static RollbackException newRollbackException(String message, Throwable cause) { RollbackException exception = new RollbackException(message); exception.initCause(cause); return exception; }
private static void rethrowAsJtaRollbackException(String msg, Throwable cause) throws javax.transaction.RollbackException { javax.transaction.RollbackException ret = new javax.transaction.RollbackException( msg); ret.initCause(cause); throw ret; }
Throwable cause = ex.getCause(); if (cause != null) { rbe.initCause(cause);
public void commit() throws RollbackException { try { if (status == Status.STATUS_MARKED_ROLLBACK) { rollback(); throw new RollbackException(); } try { doBeforeCompletion(); } catch (final Exception e) { rollback(); throw (RollbackException) new RollbackException().initCause(e); } doXAResources(Status.STATUS_COMMITTED); status = Status.STATUS_COMMITTED; doAfterCompletion(Status.STATUS_COMMITTED); } finally { threadTransaction.set(null); } }
public void commit() throws RollbackException { try { if (status == Status.STATUS_MARKED_ROLLBACK) { rollback(); throw new RollbackException(); } try { doBeforeCompletion(); } catch (final Exception e) { rollback(); throw (RollbackException) new RollbackException().initCause(e); } doXAResources(Status.STATUS_COMMITTED); status = Status.STATUS_COMMITTED; doAfterCompletion(Status.STATUS_COMMITTED); } finally { threadTransaction.set(null); } }
public void commit() throws RollbackException { try { if (status == Status.STATUS_MARKED_ROLLBACK) { rollback(); throw new RollbackException(); } try { doBeforeCompletion(); } catch (Exception e) { rollback(); throw (RollbackException) new RollbackException().initCause(e); } doXAResources(Status.STATUS_COMMITTED); status = Status.STATUS_COMMITTED; doAfterCompletion(Status.STATUS_COMMITTED); } finally { threadTransaction.set(null); } }
rollbackException.initCause(e2); throw rollbackException;
rollbackException.initCause(e2); throw rollbackException;
rollbackException.initCause(se); throw rollbackException;
rollbackException.initCause(se); throw rollbackException;
rollbackException.initCause(se); throw rollbackException;
rollbackException.initCause(se); throw rollbackException;
rollbackException.initCause(se); throw rollbackException;
if (_theTransaction.getDeferredThrowable() != null) rollbackException.initCause(_theTransaction .getDeferredThrowable());
Throwable cause = ex.getCause(); if (cause != null) { rbe.initCause(cause);
} else { rbe = new RollbackException(); rbe.initCause(getOriginalException());
toThrow = new RollbackException("XAResource working outside transaction").initCause(xae); if (tc.isEventEnabled()) Tr.event(tc, "XAResource is doing work outside of the transaction.", toThrow); toThrow = new RollbackException("Transaction has been marked as rollback only.").initCause(xae); if (tc.isEventEnabled()) Tr.event(tc, "Marked transaction as rollback only.", toThrow);