Sha256: 052f6788b1f6c94fe8c17ba6d87c7f6922a7cf82231401bd79bd03108953d773

Contents?: true

Size: 656 Bytes

Versions: 57

Compression:

Stored size: 656 Bytes

Contents

# encoding: utf-8

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

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
github_api-0.9.4 lib/github_api/error/invalid_options.rb
github_api-0.9.3 lib/github_api/error/invalid_options.rb
github_api-0.9.2 lib/github_api/error/invalid_options.rb
github_api-0.9.1 lib/github_api/error/invalid_options.rb
github_api-0.9.0 lib/github_api/error/invalid_options.rb
github_api-0.8.11 lib/github_api/error/invalid_options.rb
github_api-0.8.10 lib/github_api/error/invalid_options.rb
github_api-0.8.9 lib/github_api/error/invalid_options.rb
github_api-0.8.8 lib/github_api/error/invalid_options.rb
github_api-0.8.7 lib/github_api/error/invalid_options.rb
github_api-0.8.6 lib/github_api/error/invalid_options.rb
github_api-0.8.5 lib/github_api/error/invalid_options.rb
github_api-0.8.4 lib/github_api/error/invalid_options.rb
github_api-0.8.3 lib/github_api/error/invalid_options.rb
github_api-0.8.2 lib/github_api/error/invalid_options.rb
github_api-0.8.1 lib/github_api/error/invalid_options.rb
github_api-0.8.0 lib/github_api/error/invalid_options.rb
github_api-0.7.2 lib/github_api/error/invalid_options.rb
github_api-0.7.1 lib/github_api/error/invalid_options.rb
github_api-0.7.0 lib/github_api/error/invalid_options.rb