Class StateMachine::InvalidTransition
In: lib/state_machine/transition.rb
Parent: Error

An invalid transition was attempted

Methods

Attributes

from  [R]  The current state value for the machine
machine  [R]  The machine attempting to be transitioned

Public Instance methods

The event that triggered the failed transition

[Source]

    # File lib/state_machine/transition.rb, line 23
23:     def event
24:       @event.name
25:     end

The name for the current state

[Source]

    # File lib/state_machine/transition.rb, line 33
33:     def from_name
34:       @from_state.name
35:     end

The fully-qualified name of the event that triggered the failed transition

[Source]

    # File lib/state_machine/transition.rb, line 28
28:     def qualified_event
29:       @event.qualified_name
30:     end

The fully-qualified name for the current state

[Source]

    # File lib/state_machine/transition.rb, line 38
38:     def qualified_from_name
39:       @from_state.qualified_name
40:     end

[Validate]