Exception: StateMachines::InvalidEvent
- Defined in:
- lib/state_machines/error.rb
Overview
An invalid event was specified
Instance Attribute Summary collapse
- 
  
    
      #event  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The event that was attempted to be run. 
Attributes inherited from Error
Instance Method Summary collapse
- 
  
    
      #initialize(object, event_name)  ⇒ InvalidEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    :nodoc:. 
Constructor Details
#initialize(object, event_name) ⇒ InvalidEvent
:nodoc:
| 52 53 54 55 56 | # File 'lib/state_machines/error.rb', line 52 def initialize(object, event_name) # :nodoc: @event = event_name super(object, "#{event.inspect} is an unknown state machine event") end | 
Instance Attribute Details
#event ⇒ Object (readonly)
The event that was attempted to be run
| 50 51 52 | # File 'lib/state_machines/error.rb', line 50 def event @event end |