Sha256: a3016a40ec52ce97bfc8f9a7006deade08cd64261e8ff273f08762af744e1ef5

Contents?: true

Size: 673 Bytes

Versions: 16

Compression:

Stored size: 673 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 github 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

16 entries across 16 versions & 4 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 lib/bitbucket_rest_api/error/unknown_value.rb
zz_bitbucket_rest_api-0.1.10 lib/bitbucket_rest_api/error/unknown_value.rb
zz_bitbucket_rest_api-0.1.9 lib/bitbucket_rest_api/error/unknown_value.rb
zz_bitbucket_rest_api-0.1.8 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api2-0.9.5 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api2-0.9.1 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api2-0.2.2 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api2-0.2.1 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api2-0.2.0 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api-0.1.7 lib/bitbucket_rest_api/error/unknown_value.rb
reenhanced_bitbucket_api-0.1.6 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api-0.1.5 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api-0.1.4 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api-0.1.2 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api-0.1.1 lib/bitbucket_rest_api/error/unknown_value.rb
bitbucket_rest_api-0.1.0 lib/bitbucket_rest_api/error/unknown_value.rb