Exception: Legion::Gaia::Workflow::InvalidTransition

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

Overview

Raised when a transition is attempted that is not defined

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ InvalidTransition

Returns a new instance of InvalidTransition.



13
14
15
16
17
# File 'lib/legion/gaia/workflow/errors.rb', line 13

def initialize(from, to)
  @from = from
  @to = to
  super("No valid transition from #{from.inspect} to #{to.inspect}")
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



11
12
13
# File 'lib/legion/gaia/workflow/errors.rb', line 11

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



11
12
13
# File 'lib/legion/gaia/workflow/errors.rb', line 11

def to
  @to
end