Sha256: 056ea3b2f60b993b9ecfa1aca5bc6af4a499362bc90fac821f9f0b9eaea2bfef

Contents?: true

Size: 679 Bytes

Versions: 20

Compression:

Stored size: 679 Bytes

Contents

# 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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
nimbu-api-0.5.0 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.4.4 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.4.3 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.4.2 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.4.1 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.4.0 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.3.0 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.2.1 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.2 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.2.beta lib/nimbu-api/errors/required_params.rb
nimbu-api-0.1.5 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.1.4 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.1.3 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.1.1 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.1 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.0.2 lib/nimbu-api/errors/required_params.rb
nimbu-api-0.0.1 lib/nimbu-api/errors/required_params.rb