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