Exception: Nimbu::Error::UnknownValue
- Inherits:
-
ClientError
- Object
- StandardError
- NimbuError
- ClientError
- Nimbu::Error::UnknownValue
- Defined in:
- lib/nimbu-api/errors/unknown_value.rb
Instance Attribute Summary
Attributes inherited from ClientError
#problem, #resolution, #summary
Attributes inherited from NimbuError
#response_headers, #response_message
Instance Method Summary collapse
-
#initialize(key, value, permitted) ⇒ UnknownValue
constructor
A new instance of UnknownValue.
Methods inherited from ClientError
Methods inherited from NimbuError
Methods included from Utils::Descendants
Constructor Details
#initialize(key, value, permitted) ⇒ UnknownValue
Returns a new instance of UnknownValue.
7 8 9 10 11 12 13 14 15 |
# File 'lib/nimbu-api/errors/unknown_value.rb', line 7 def initialize(key, value, permitted) super( ( :problem => "Wrong value of '#{value}' for the parameter: #{key} provided for this request.", :summary => "Nimbu gem checks the request parameters passed to ensure that Nimbu api is not hit unnecessairly and fails fast.", :resolution => "Permitted values are: #{permitted}, make sure these are the ones you are using" ) ) end |