Exception: Workflow::Errors::StateComparisonError

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

Instance Method Summary collapse

Constructor Details

#initialize(state, other) ⇒ StateComparisonError

Returns a new instance of StateComparisonError.



38
39
40
# File 'lib/workflow/errors.rb', line 38

def initialize(state, other)
  super("Can't compare #{state} with #{other} bc [#{other}] is not a defined state.")
end