Class: DurableFlow::Interrupt
- Inherits:
-
ActiveJob::Continuation::Interrupt
- Object
- ActiveJob::Continuation::Interrupt
- DurableFlow::Interrupt
- Defined in:
- lib/durable_flow/errors.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#resume_options ⇒ Object
readonly
Returns the value of attribute resume_options.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(reason:, resume_options:, status:) ⇒ Interrupt
constructor
A new instance of Interrupt.
Constructor Details
#initialize(reason:, resume_options:, status:) ⇒ Interrupt
Returns a new instance of Interrupt.
49 50 51 52 53 54 |
# File 'lib/durable_flow/errors.rb', line 49 def initialize(reason:, resume_options:, status:) @reason = reason @resume_options = @status = status super("Interrupted workflow (#{reason})") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
47 48 49 |
# File 'lib/durable_flow/errors.rb', line 47 def reason @reason end |
#resume_options ⇒ Object (readonly)
Returns the value of attribute resume_options.
47 48 49 |
# File 'lib/durable_flow/errors.rb', line 47 def @resume_options end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
47 48 49 |
# File 'lib/durable_flow/errors.rb', line 47 def status @status end |