Exception: StateMachine::InvalidEvent
- Inherits:
-
Error
- Object
- StandardError
- Error
- StateMachine::InvalidEvent
- Defined in:
- lib/state_machine/event.rb
Overview
An invalid event was specified
Instance Attribute Summary (collapse)
-
- (Object) event
readonly
The event that was attempted to be run.
Attributes inherited from Error
Instance Method Summary (collapse)
-
- (InvalidEvent) initialize(object, event_name)
constructor
:nodoc:.
Constructor Details
- (InvalidEvent) initialize(object, event_name)
:nodoc:
13 14 15 16 17 |
# File 'lib/state_machine/event.rb', line 13 def initialize(object, event_name) #:nodoc: @event = event_name super(object, "#{event.inspect} is an unknown state machine event") end |
Instance Attribute Details
- (Object) event (readonly)
The event that was attempted to be run
11 12 13 |
# File 'lib/state_machine/event.rb', line 11 def event @event end |