Exception: Workflow::Errors::StateComparisonError

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

Instance Method Summary collapse

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