Exception: StateMachines::InvalidParallelTransition
- Defined in:
- lib/state_machines/error.rb
Overview
A set of transition failed to run in parallel
Instance Attribute Summary collapse
- 
  
    
      #events  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The set of events that failed the transition(s). 
Attributes inherited from Error
Instance Method Summary collapse
- 
  
    
      #initialize(object, events)  ⇒ InvalidParallelTransition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    :nodoc:. 
Constructor Details
#initialize(object, events) ⇒ InvalidParallelTransition
:nodoc:
| 105 106 107 108 109 | # File 'lib/state_machines/error.rb', line 105 def initialize(object, events) # :nodoc: @events = events super(object, "Cannot run events in parallel: #{events * ', '}") end | 
Instance Attribute Details
#events ⇒ Object (readonly)
The set of events that failed the transition(s)
| 103 104 105 | # File 'lib/state_machines/error.rb', line 103 def events @events end |