Exception: Spree::Workflow::FailureSignal

Inherits:
Exception
  • Object
show all
Defined in:
lib/spree/workflow.rb

Overview

Internal control flow — Exception, not StandardError (the ActiveJob Continuation::Interrupt precedent), so a plain rescue inside #perform can't swallow it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ FailureSignal

Returns a new instance of FailureSignal.



59
60
61
62
# File 'lib/spree/workflow.rb', line 59

def initialize(result)
  @result = result
  super('workflow failure')
end

Instance Attribute Details

#result ⇒ Object (readonly)

rubocop:disable Lint/InheritException



57
58
59
# File 'lib/spree/workflow.rb', line 57

def result
  @result
end