Exception: StateMachines::InvalidParallelTransition

Inherits:
Error
  • Object
show all
Defined in:
lib/state_machines/error.rb

Overview

A set of transition failed to run in parallel

Instance Attribute Summary collapse

Attributes inherited from Error

#object

Instance Method Summary collapse

Constructor Details

#initialize(object, events) ⇒ InvalidParallelTransition

:nodoc:



104
105
106
107
108
# File 'lib/state_machines/error.rb', line 104

def initialize(object, events) #:nodoc:
  @events = events

  super(object, "Cannot run events in parallel: #{events * ', '}")
end

Instance Attribute Details

#eventsObject (readonly)

The set of events that failed the transition(s)



102
103
104
# File 'lib/state_machines/error.rb', line 102

def events
  @events
end