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.



71
72
73
# File 'lib/waffle_api/errors.rb', line 71

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

Instance Method Details

#message(key = '') ⇒ Object



75
76
77
# File 'lib/waffle_api/errors.rb', line 75

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