Exception: Spree::Workflow::FailureSignal
- Inherits:
-
Exception
- Object
- Exception
- Spree::Workflow::FailureSignal
- 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
-
#result ⇒ Object
readonly
rubocop:disable Lint/InheritException.
Instance Method Summary collapse
-
#initialize(result) ⇒ FailureSignal
constructor
A new instance of FailureSignal.
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 |