Exception: StateFu::IllegalTransition
- Inherits:
-
TransitionError
- Object
- StandardError
- Error
- TransitionError
- StateFu::IllegalTransition
- Defined in:
- lib/support/exceptions.rb
Overview
deprecated? class Invalid Transition < TransitionError
Instance Attribute Summary collapse
-
#legal_transitions ⇒ Object
readonly
Returns the value of attribute legal_transitions.
Attributes inherited from TransitionError
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(transition, message = nil, valid_transitions = nil, options = {}) ⇒ IllegalTransition
constructor
A new instance of IllegalTransition.
Methods inherited from TransitionError
Constructor Details
#initialize(transition, message = nil, valid_transitions = nil, options = {}) ⇒ IllegalTransition
Returns a new instance of IllegalTransition.
101 102 103 104 |
# File 'lib/support/exceptions.rb', line 101 def initialize transition, =nil, valid_transitions=nil, ={} @legal_transitions = valid_transitions super transition, , end |
Instance Attribute Details
#legal_transitions ⇒ Object (readonly)
Returns the value of attribute legal_transitions.
99 100 101 |
# File 'lib/support/exceptions.rb', line 99 def legal_transitions @legal_transitions end |