Exception: Workflow::Errors::NoTransitionAllowed
- Inherits:
-
StandardError
- Object
- StandardError
- Workflow::Errors::NoTransitionAllowed
- Defined in:
- lib/workflow/errors.rb
Instance Method Summary collapse
-
#initialize(state, event_name) ⇒ NoTransitionAllowed
constructor
A new instance of NoTransitionAllowed.
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 |