Class: Synapse::Command::RollbackPolicy
- Inherits:
-
Object
- Object
- Synapse::Command::RollbackPolicy
- Defined in:
- lib/synapse/command/rollback_policy.rb
Overview
Represents a mechanism for determining whether or not to rollback the unit of work for a command dispatch in case an exception occurs during the dispatch
Direct Known Subclasses
Instance Method Summary collapse
-
#should_rollback(exception) ⇒ Boolean
Returns true if the unit of work should be rolled back.
Instance Method Details
#should_rollback(exception) ⇒ Boolean
Returns true if the unit of work should be rolled back
10 11 12 |
# File 'lib/synapse/command/rollback_policy.rb', line 10 def should_rollback(exception) raise NotImplementedError end |