Exception: Workflow::Errors::StateComparisonError
- Inherits:
-
StandardError
- Object
- StandardError
- Workflow::Errors::StateComparisonError
- Defined in:
- lib/workflow/errors.rb
Instance Method Summary collapse
-
#initialize(state) ⇒ StateComparisonError
constructor
A new instance of StateComparisonError.
Constructor Details
#initialize(state) ⇒ StateComparisonError
Returns a new instance of StateComparisonError.
38 39 40 41 |
# File 'lib/workflow/errors.rb', line 38 def initialize(state) super("Other State #{state} is a #{state.class}. I can only be compared with a Workflow::State.".squish) end |