Class: Flock::UnknownStateError

Inherits:
FlockException
  • Object
show all
Defined in:
lib/flock.rb

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ UnknownStateError

Returns a new instance of UnknownStateError.



41
42
43
# File 'lib/flock.rb', line 41

def initialize(state)
  super("Unable to look up id for state #{state.inspect}. Valid states are #{ Flock::QueryTerm::STATES.keys.map{|s| s.inspect }.join(', ') }")
end