Exception: Legion::Gaia::Workflow::CheckpointBlocked
- Defined in:
- lib/legion/gaia/workflow/errors.rb
Overview
Raised when a checkpoint condition is not satisfied
Instance Attribute Summary collapse
-
#checkpoint_name ⇒ Object
readonly
Returns the value of attribute checkpoint_name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(state, checkpoint_name) ⇒ CheckpointBlocked
constructor
A new instance of CheckpointBlocked.
Constructor Details
#initialize(state, checkpoint_name) ⇒ CheckpointBlocked
Returns a new instance of CheckpointBlocked.
37 38 39 40 41 |
# File 'lib/legion/gaia/workflow/errors.rb', line 37 def initialize(state, checkpoint_name) @state = state @checkpoint_name = checkpoint_name super("Checkpoint #{checkpoint_name.inspect} not satisfied in state #{state.inspect}") end |
Instance Attribute Details
#checkpoint_name ⇒ Object (readonly)
Returns the value of attribute checkpoint_name.
35 36 37 |
# File 'lib/legion/gaia/workflow/errors.rb', line 35 def checkpoint_name @checkpoint_name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
35 36 37 |
# File 'lib/legion/gaia/workflow/errors.rb', line 35 def state @state end |