Exception: Workflow::Errors::NoTransitionAllowed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/workflow/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(state, event_name) ⇒ NoTransitionAllowed

Returns a new instance of NoTransitionAllowed.



52
53
54
# File 'lib/workflow/errors.rb', line 52

def initialize(state, event_name)
  super("There is no event #{event_name} defined for the #{state.name} state")
end