Exception: Legion::Gaia::Workflow::InvalidTransition
- Defined in:
- lib/legion/gaia/workflow/errors.rb
Overview
Raised when a transition is attempted that is not defined
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to) ⇒ InvalidTransition
constructor
A new instance of InvalidTransition.
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
#from ⇒ Object (readonly)
Returns the value of attribute from.
11 12 13 |
# File 'lib/legion/gaia/workflow/errors.rb', line 11 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
11 12 13 |
# File 'lib/legion/gaia/workflow/errors.rb', line 11 def to @to end |