Exception: Workflow::Errors::NoSuchStateError

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

Instance Method Summary collapse

Constructor Details

#initialize(event, transition) ⇒ NoSuchStateError

Returns a new instance of NoSuchStateError.



45
46
47
48
# File 'lib/workflow/errors.rb', line 45

def initialize(event, transition)
  super("Event #{event.name} transitions to
        #{transition.target_state} but there is no such state.".squish)
end