Exception: Legion::Gaia::Workflow::CheckpointBlocked

Inherits:
Error
  • Object
show all
Defined in:
lib/legion/gaia/workflow/errors.rb

Overview

Raised when a checkpoint condition is not satisfied

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#stateObject (readonly)

Returns the value of attribute state.



35
36
37
# File 'lib/legion/gaia/workflow/errors.rb', line 35

def state
  @state
end