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 26
26:     def event
27:       @event.name
28:     end

The name for the current state

[Source]

    # File lib/state_machine/transition.rb, line 36
36:     def from_name
37:       @from_state.name
38:     end

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

[Source]

    # File lib/state_machine/transition.rb, line 31
31:     def qualified_event
32:       @event.qualified_name
33:     end

The fully-qualified name for the current state

[Source]

    # File lib/state_machine/transition.rb, line 41
41:     def qualified_from_name
42:       @from_state.qualified_name
43:     end

[Validate]