Exception: Workflow::Errors::EventNameCollisionError

Inherits:
WorkflowDefinitionError show all
Defined in:
lib/workflow/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(state, event_name) ⇒ EventNameCollisionError

Returns a new instance of EventNameCollisionError.



32
33
34
# File 'lib/workflow/errors.rb', line 32

def initialize(state, event_name)
  super("Already defined an event [#{event_name}] for state[#{state.name}]")
end