class Synapse::Command::RollbackPolicy
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
Public Instance Methods
should_rollback(exception)
click to toggle source
Returns true if the unit of work should be rolled back
@param [Exception] exception @return [Boolean]
# File lib/synapse/command/rollback_policy.rb, line 10 def should_rollback(exception) raise NotImplementedError end