Sha256: 1e154492f58be155ef85dc42eeb8b71c20eabd3bd8b46e6a729e0d210e6b3b8a

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

# encoding: utf-8

module BitBucket #:nodoc
  # Raised when invalid options are passed to a request body
  module Error
    class InvalidOptions < ClientError
      def initialize(invalid, valid)
        super(
          generate_message(
            :problem => "Invalid option #{invalid.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 => "Valid options are: #{valid.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/invalid_options.rb
codenamev_bitbucket_api-0.4.0 lib/bitbucket_rest_api/error/invalid_options.rb
reenhanced_bitbucket_api-0.3.2 lib/bitbucket_rest_api/error/invalid_options.rb
reenhanced_bitbucket_api-0.3.1 lib/bitbucket_rest_api/error/invalid_options.rb
reenhanced_bitbucket_api-0.3.0 lib/bitbucket_rest_api/error/invalid_options.rb