Exception: DurableFlow::Pause

Inherits:
Exception
  • Object
show all
Defined in:
lib/durable_flow/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



19
20
21
# File 'lib/durable_flow/errors.rb', line 19

def reason
  @reason
end

#statusObject (readonly)

Returns the value of attribute status.



19
20
21
# File 'lib/durable_flow/errors.rb', line 19

def status
  @status
end