Exception: WaffleAPI::Error::UnknownKey

Inherits:
Standard
  • Object
show all
Defined in:
lib/waffle_api/errors.rb

Overview

If you raise this exception, please report it as an issue with it’s message on this gem repo

Instance Method Summary collapse

Constructor Details

#initialize(key = '') ⇒ UnknownKey

Returns a new instance of UnknownKey.



62
63
64
# File 'lib/waffle_api/errors.rb', line 62

def initialize(key = '')
  super message key
end

Instance Method Details

#message(key = '') ⇒ Object



66
67
68
# File 'lib/waffle_api/errors.rb', line 66

def message(key = '')
  "The key '#{key}' does not exist on Wafflepool api."
end