Exception: Github::Error::InvalidOptions
- Inherits:
-
ClientError
- Object
- StandardError
- GithubError
- ClientError
- Github::Error::InvalidOptions
- Defined in:
- lib/github_api/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(invalid, valid) ⇒ InvalidOptions
constructor
A new instance of InvalidOptions.
Methods inherited from ClientError
Methods inherited from GithubError
Constructor Details
#initialize(invalid, valid) ⇒ InvalidOptions
Returns a new instance of InvalidOptions.
27 28 29 30 31 32 33 34 35 |
# File 'lib/github_api/error/client_error.rb', line 27 def initialize(invalid, valid) super( ( 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 unnecessarily and to fail fast.", resolution: "Valid options are: #{valid.join(', ')}, make sure these are the ones you are using" ) ) end |