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.



39
40
41
42
43
# File 'lib/durable_flow/errors.rb', line 39

def initialize(reason:, status:)
  @reason = reason
  @status = status
  super("Paused workflow (#{reason})")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



37
38
39
# File 'lib/durable_flow/errors.rb', line 37

def reason
  @reason
end

#statusObject (readonly)

Returns the value of attribute status.



37
38
39
# File 'lib/durable_flow/errors.rb', line 37

def status
  @status
end