public class ScopeTrans extends Object implements Thread.UncaughtExceptionHandler
| Constructor and Description |
|---|
ScopeTrans(boolean rollbackOnChecked,
boolean created,
SpiTransaction transaction,
TxScope txScope,
SpiTransaction suspendedTransaction,
SpiTransactionScopeManager scopeMgr) |
| Modifier and Type | Method and Description |
|---|---|
Error |
caughtError(Error e)
An Error was caught and this ALWAYS causes a rollback to occur.
|
<T extends Throwable> |
caughtThrowable(T e)
An Exception was caught and may or may not cause a rollback to occur.
|
void |
onExit(Object returnOrThrowable,
int opCode)
Returned via RETURN or expected Exception from the method.
|
void |
onFinally()
Commit if the transaction exists and has not already been rolled back.
|
void |
uncaughtException(Thread thread,
Throwable e)
Called when the Thread catches any uncaught exception.
|
public ScopeTrans(boolean rollbackOnChecked,
boolean created,
SpiTransaction transaction,
TxScope txScope,
SpiTransaction suspendedTransaction,
SpiTransactionScopeManager scopeMgr)
public void uncaughtException(Thread thread, Throwable e)
uncaughtException in interface Thread.UncaughtExceptionHandlerpublic void onExit(Object returnOrThrowable, int opCode)
returnOrThrowable - the return value or ThrowableopCode - indicatespublic void onFinally()
public Error caughtError(Error e)
public <T extends Throwable> T caughtThrowable(T e)
Copyright © 2014. All Rights Reserved.