Exception: RigidWorkflow::ActivityFailedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rigid_workflow/step_result.rb

Overview

Exception raised when an activity fails after all retry attempts.

Instance Method Summary collapse

Constructor Details

#initialize(step) ⇒ ActivityFailedError

Returns a new instance of ActivityFailedError.



35
36
37
38
39
40
# File 'lib/rigid_workflow/step_result.rb', line 35

def initialize(step)
  @step = step
  super(
    "Activity #{step.activity_class} (step: #{step.step_name}) failed after #{step.attempt_count} attempts"
  )
end