Exception: Github::Error::RequiredParams
- Inherits:
-
ClientError
- Object
- StandardError
- GithubError
- ClientError
- Github::Error::RequiredParams
- Defined in:
- lib/github_api2/error/client_error.rb
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
-
#initialize(provided, required) ⇒ RequiredParams
constructor
A new instance of RequiredParams.
Methods inherited from ClientError
Methods inherited from GithubError
Constructor Details
#initialize(provided, required) ⇒ RequiredParams
Returns a new instance of RequiredParams.
40 41 42 43 44 45 46 47 48 |
# File 'lib/github_api2/error/client_error.rb', line 40 def initialize(provided, required) super( ( 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 |