TransactionException is thrown when an exception occurs while trying to create, start commit or rollback an exception
TransactionException
10271028102910301031103210331034103510361037
addReferenceInMemory(ref); } } catch (Throwable t) { throw new TransactionException("Failed to add reference", t); } //Only need to prompt delivery if refs were added promptDelivery = true; }
190191192193194195196197198199200
if (persistent != null) { //Only used in testing if (failAfterCommit) { throw new TransactionException("Forced failure for testing"); } // Cast a commit message ClusterRequest req = new SendTransactionRequest(nodeId, txId);
224225226227228229230231
} //Only used in testing if (failBeforeCommit) { throw new TransactionException("Forced failure for testing"); } }
992993994995996997998999100010011002
addReferenceInMemory(ref); } } catch (Throwable t) { throw new TransactionException("Failed to add reference", t); } } // Remove deliveries
565758596061626364
throws TransactionException { this.connection = connection; try { this.jabTransaction = new JABTransaction(session, timeout); } catch (Throwable e) { throw new TransactionException("Could not create the transaction: " + e.getMessage(), e); } }
308309310311312313314315
Transactions.getUserTransaction().begin(); } } catch (Exception e) { throw new TransactionException("Could not start transaction", e); } }
7576777879808182
{ ((Session)resource).commit(); } catch (JMSException e) { throw new TransactionException(CoreMessages.transactionCommitFailed(), e); } }
858687888990919293
tableManager.deleteTable(TABLE); } utx.commit(); } catch (Exception e) { utx.rollback(); throw new TransactionException("Error during commit.", e); } }
150151152153154155156157158
tableManager.insertTable(TABLE); } utx.commit(); } catch (Exception e) { utx.rollback(); throw new TransactionException("Error during commit.", e); } }
129130131132133134135136
insertTable(dbName1); insertTable(dbName2); try { ctx.setRollbackOnly(); } catch (IllegalStateException e) { throw new TransactionException("There was an exception in the getRollbackOnly", e); } }