Exception: DurableFlow::Pause
- Inherits:
-
Exception
- Object
- Exception
- DurableFlow::Pause
- Defined in:
- lib/durable_flow/errors.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(reason:, status:) ⇒ Pause
constructor
A new instance of Pause.
Constructor Details
#initialize(reason:, status:) ⇒ Pause
Returns a new instance of Pause.
21 22 23 24 25 |
# File 'lib/durable_flow/errors.rb', line 21 def initialize(reason:, status:) @reason = reason @status = status super("Paused workflow (#{reason})") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
19 20 21 |
# File 'lib/durable_flow/errors.rb', line 19 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
19 20 21 |
# File 'lib/durable_flow/errors.rb', line 19 def status @status end |