org.axonframework.commandhandling
Class RollbackOnUncheckedExceptionConfiguration
java.lang.Object
org.axonframework.commandhandling.RollbackOnUncheckedExceptionConfiguration
- All Implemented Interfaces:
- RollbackConfiguration
public class RollbackOnUncheckedExceptionConfiguration
- extends Object
- implements RollbackConfiguration
RollbackConfiguration that indicates a rollback should be triggered for all but checked exceptions. Therefore,
Errors and RuntimeExceptions will cause a rollback.
- Since:
- 1.1
- Author:
- Martin Tilma
Method Summary |
boolean |
rollBackOn(Throwable throwable)
Decides whether the given throwable should trigger a rollback. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RollbackOnUncheckedExceptionConfiguration
public RollbackOnUncheckedExceptionConfiguration()
rollBackOn
public boolean rollBackOn(Throwable throwable)
- Description copied from interface:
RollbackConfiguration
- Decides whether the given
throwable
should trigger a rollback.
- Specified by:
rollBackOn
in interface RollbackConfiguration
- Parameters:
throwable
- the Throwable to evaluate
- Returns:
true
if the UnitOfWork should be rolled back, otherwise false
Copyright © 2010-2016. All Rights Reserved.