Exception: GenevaDrive::StepExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- GenevaDrive::StepExecutionError
- Defined in:
- lib/geneva_drive/flow_control.rb
Overview
Base class for errors that occur during step execution. These errors are raised after recovery actions have been performed, so the workflow/step states are already updated when the exception propagates.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#step_execution ⇒ GenevaDrive::StepExecution
readonly
The step execution that failed.
-
#workflow ⇒ GenevaDrive::Workflow
readonly
The workflow.
Instance Method Summary collapse
-
#initialize(message, step_execution:, workflow:) ⇒ StepExecutionError
constructor
Creates a new StepExecutionError.
Constructor Details
#initialize(message, step_execution:, workflow:) ⇒ StepExecutionError
Creates a new StepExecutionError.
59 60 61 62 63 |
# File 'lib/geneva_drive/flow_control.rb', line 59 def initialize(, step_execution:, workflow:) @step_execution = step_execution @workflow = workflow super() end |
Instance Attribute Details
#step_execution ⇒ GenevaDrive::StepExecution (readonly)
Returns the step execution that failed.
49 50 51 |
# File 'lib/geneva_drive/flow_control.rb', line 49 def step_execution @step_execution end |
#workflow ⇒ GenevaDrive::Workflow (readonly)
Returns the workflow.
52 53 54 |
# File 'lib/geneva_drive/flow_control.rb', line 52 def workflow @workflow end |