Sha256: 7ffba2c0b5db1223e4d4400106678787b36f34096634a21ce0015ded4f65c33e

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

# encoding: utf-8

module BitBucket #:nodoc
  # Raised when invalid options are passed to a request body
  module Error
    class UnknownValue < ClientError
      def initialize(key, value, permitted)
        super(
          generate_message(
            :problem => "Wrong value of '#{value}' for the parameter: #{key} provided for this request.",
            :summary => "BitBucket gem checks the request parameters passed to ensure that bitbucket api is not hit unnecessairly and fails fast.",
            :resolution => "Permitted values are: #{permitted}, 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/unknown_value.rb
codenamev_bitbucket_api-0.4.0 lib/bitbucket_rest_api/error/unknown_value.rb
reenhanced_bitbucket_api-0.3.2 lib/bitbucket_rest_api/error/unknown_value.rb
reenhanced_bitbucket_api-0.3.1 lib/bitbucket_rest_api/error/unknown_value.rb
reenhanced_bitbucket_api-0.3.0 lib/bitbucket_rest_api/error/unknown_value.rb