class Nimbu::Error::UnknownValue
Public Class Methods
new(key, value, permitted)
click to toggle source
Calls superclass method
Nimbu::Error::ClientError::new
# File lib/nimbu-api/errors/unknown_value.rb, line 7 def initialize(key, value, permitted) super( generate_message( :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