Class: Synapse::Command::RollbackOnAnyExceptionPolicy

Inherits:
RollbackPolicy
  • Object
show all
Defined in:
lib/synapse/command/rollback_policy.rb

Overview

Implementation of a rollback policy that performs a rollback on any exception

Instance Method Summary collapse

Instance Method Details

#should_rollback(exception) ⇒ Boolean

Parameters:

  • exception (Exception)

Returns:

  • (Boolean)


19
20
21
# File 'lib/synapse/command/rollback_policy.rb', line 19

def should_rollback(exception)
  true
end