summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2007-10-23 18:31:29 +0000
committerBrian S. O'Neill <bronee@gmail.com>2007-10-23 18:31:29 +0000
commitf1393c44e8e0f30da15a3443ebbf0c022c608fca (patch)
treebd3ca1a5e457c12fd8b08ad96c44881937729167 /src
parentf4b5012d20abe94c62e8d3b3c3d8ed626dff925b (diff)
More changes for deprecation of ExceptionTransformer in TransactionManager.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/spi/TransactionManager.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java
index 676a15d..f16f548 100644
--- a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java
+++ b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java
@@ -402,15 +402,12 @@ public abstract class TransactionManager<Txn> {
if (!txnMgr.commitTxn(mTxn)) {
mTxn = null;
}
- } catch (PersistException e) {
- mTxn = null;
- throw e;
} catch (Throwable e) {
mTxn = null;
if (txnMgr.mExTransformer != null) {
throw txnMgr.mExTransformer.toPersistException(e);
}
- throw new PersistException(e);
+ throw ExceptionTransformer.getInstance().toPersistException(e);
}
} else {
// Indicate fake nested transaction committed.
@@ -439,13 +436,11 @@ public abstract class TransactionManager<Txn> {
if (mParent == null || mParent.mTxn != mTxn) {
try {
txnMgr.abortTxn(mTxn);
- } catch (PersistException e) {
- throw e;
} catch (Throwable e) {
if (txnMgr.mExTransformer != null) {
throw txnMgr.mExTransformer.toPersistException(e);
}
- throw new PersistException(e);
+ throw ExceptionTransformer.getInstance().toPersistException(e);
}
}
} finally {