A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://rubydoc.info/github/piotrmurach/github/master/Github/Error/RequiredParams below:

RequiredParams – Documentation for piotrmurach/github (master) – RubyDoc.info

Exception: Github::Error::RequiredParams Overview

Raised when invalid options are passed to a request body

Instance Attribute Summary Attributes inherited from ClientError

#problem, #resolution, #summary

Attributes inherited from GithubError

#response_headers, #response_message

Instance Method Summary collapse Methods inherited from ClientError

#generate_message

Methods inherited from GithubError

#backtrace

Constructor Details #initialize(provided, required) ⇒ RequiredParams

Returns a new instance of RequiredParams.

40
41
42
43
44
45
46
47
48
# File 'lib/github_api/error/client_error.rb', line 40

def initialize(provided, required)
  super(
    generate_message(
      problem: "Missing required parameters: #{provided.keys.join(', ')} provided for this request.",
      summary: "Github gem checks the request parameters passed to ensure that github api is not hit unnecessarily and to fail fast.",
      resolution: "Required parameters are: #{required.join(', ')}, make sure these are the ones you are using"
    )
  )
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4