Exception: StateFu::IllegalTransition

Inherits:
TransitionError show all
Defined in:
lib/support/exceptions.rb

Overview

deprecated? class Invalid Transition < TransitionError

Instance Attribute Summary collapse

Attributes inherited from TransitionError

#transition

Attributes inherited from Error

#binding, #options

Instance Method Summary collapse

Methods inherited from TransitionError

#inspect

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, message=nil, valid_transitions=nil, options={}
  @legal_transitions = valid_transitions
  super transition, message, options
end

Instance Attribute Details

Returns the value of attribute legal_transitions


99
100
101
# File 'lib/support/exceptions.rb', line 99

def legal_transitions
  @legal_transitions
end