# encoding: utf-8 module Nimbu #:nodoc # Raised when invalid options are passed to a request body module Error class RequiredParams < ClientError def initialize(provided, required) super( generate_message( :problem => "Missing required parameters: #{provided.keys.join(', ')} provided for this request.", :summary => "Nimbu gem checks the request parameters passed to ensure that Nimbu api is not hit unnecessairly and to fail fast.", :resolution => "Required parameters are: #{required.join(', ')}, make sure these are the ones you are using" ) ) end end end # Error end # Nimbu