Sha256: e471ff850ad4e44177b52508f7c095542fc2220a47c78908a7de481af72cadc3

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

# encoding: utf-8

module BitBucket #: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 => "BitBucket gem checks the request parameters passed to ensure that bitbucket 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 # BitBucket

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
codenamev_bitbucket_api-0.4.1 lib/bitbucket_rest_api/error/required_params.rb
codenamev_bitbucket_api-0.4.0 lib/bitbucket_rest_api/error/required_params.rb
reenhanced_bitbucket_api-0.3.2 lib/bitbucket_rest_api/error/required_params.rb
reenhanced_bitbucket_api-0.3.1 lib/bitbucket_rest_api/error/required_params.rb
reenhanced_bitbucket_api-0.3.0 lib/bitbucket_rest_api/error/required_params.rb