Class: Synapse::Command::RollbackPolicy

Inherits:
Object
  • Object
show all
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

RollbackOnAnyExceptionPolicy

Instance Method Summary collapse

Instance Method Details

#should_rollback(exception) ⇒ Boolean

Returns true if the unit of work should be rolled back

Parameters:

  • exception (Exception)

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/synapse/command/rollback_policy.rb', line 10

def should_rollback(exception)
  raise NotImplementedError
end