Sha256: a29d7b65c8dad6866457ee3f897d6d23cc2f933986f3b8d2365775ea4581c5e4

Contents?: true

Size: 664 Bytes

Versions: 46

Compression:

Stored size: 664 Bytes

Contents

# encoding: utf-8

module Github #: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 => "Github 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 # Github

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
github_api-0.14.2 lib/github_api/error/unknown_value.rb
github_api-0.14.1 lib/github_api/error/unknown_value.rb
github_api-0.14.0 lib/github_api/error/unknown_value.rb
github_api-0.13.1 lib/github_api/error/unknown_value.rb
github_api-0.13.0 lib/github_api/error/unknown_value.rb
github_api-0.12.4 lib/github_api/error/unknown_value.rb
github_api-0.12.3 lib/github_api/error/unknown_value.rb
github_api-0.12.2 lib/github_api/error/unknown_value.rb
github_api-0.12.1 lib/github_api/error/unknown_value.rb
github_api-0.12.0 lib/github_api/error/unknown_value.rb
github_api-0.11.3 lib/github_api/error/unknown_value.rb
github_api-0.11.2 lib/github_api/error/unknown_value.rb
github_api-0.11.1 lib/github_api/error/unknown_value.rb
github_api-0.11.0 lib/github_api/error/unknown_value.rb
github_api-0.10.2 lib/github_api/error/unknown_value.rb
github_api-0.10.1 lib/github_api/error/unknown_value.rb
github_api-0.10.0 lib/github_api/error/unknown_value.rb
github_api-0.9.7 lib/github_api/error/unknown_value.rb
github_api-0.9.6 lib/github_api/error/unknown_value.rb
github_api-0.9.5 lib/github_api/error/unknown_value.rb