Exception: Newflow::InvalidWorkflowStateError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/newflow.rb

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ InvalidWorkflowStateError

Returns a new instance of InvalidWorkflowStateError.



12
13
14
# File 'lib/newflow.rb', line 12

def initialize(state)
  @state = state
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/newflow.rb', line 16

def message
  "'#{@state}' is not a valid state"
end