Class: DurableFlow::Interrupt

Inherits:
ActiveJob::Continuation::Interrupt
  • Object
show all
Defined in:
lib/durable_flow/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason:, resume_options:, status:) ⇒ Interrupt

Returns a new instance of Interrupt.



31
32
33
34
35
36
# File 'lib/durable_flow/errors.rb', line 31

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

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



29
30
31
# File 'lib/durable_flow/errors.rb', line 29

def reason
  @reason
end

#resume_optionsObject (readonly)

Returns the value of attribute resume_options.



29
30
31
# File 'lib/durable_flow/errors.rb', line 29

def resume_options
  @resume_options
end

#statusObject (readonly)

Returns the value of attribute status.



29
30
31
# File 'lib/durable_flow/errors.rb', line 29

def status
  @status
end