Exception: MicroStateMachine::InvalidState
- Inherits:
-
StandardError
- Object
- StandardError
- MicroStateMachine::InvalidState
- Defined in:
- lib/micro_state_machine.rb
Instance Method Summary collapse
-
#initialize(old_state, new_state) ⇒ InvalidState
constructor
A new instance of InvalidState.
Constructor Details
#initialize(old_state, new_state) ⇒ InvalidState
Returns a new instance of InvalidState.
6 7 8 |
# File 'lib/micro_state_machine.rb', line 6 def initialize(old_state, new_state) super("Cannot transition from #{old_state} to #{new_state}") end |