Method | Description | |
---|---|---|
AddGlobalExecuteOrCommitExceptionHandler ( OnException handler ) : void |
Register a global callback that will be notified when exceptions occur during UnitOfWork calls to
|
|
AddGlobalRollbackExceptionHandler ( OnException handler ) : void |
Register a global callback that will be notified when exceptions occur during UnitOfWork calls to The exception will still bubble up from the original call, so this is NOT a substitute for normal exception handling.
|
Method | Description | |
---|---|---|
OnExecuteOrCommitException ( ISessionFactory sessionFactory, |
This method should only be invoked by
|
|
OnRollbackException ( ISessionFactory sessionFactory, |
This method should only be invoked by
|
|
RemoveAllHandlers ( ) : void |
FOR UNIT TESTING ONLY
|
public static AddGlobalExecuteOrCommitExceptionHandler ( OnException handler ) : void | ||
handler | OnException | |
return | void |
public static AddGlobalRollbackExceptionHandler ( OnException handler ) : void | ||
handler | OnException | |
return | void |