Exception: Github::Error::UnknownValue
- Inherits:
-
ClientError
- Object
- StandardError
- GithubError
- ClientError
- Github::Error::UnknownValue
- 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(key, value, permitted) ⇒ UnknownValue
constructor
A new instance of UnknownValue.
Methods inherited from ClientError
Methods inherited from GithubError
Constructor Details
#initialize(key, value, permitted) ⇒ UnknownValue
Returns a new instance of UnknownValue.
66 67 68 69 70 71 72 73 74 |
# File 'lib/github_api2/error/client_error.rb', line 66 def initialize(key, value, permitted) super( ( 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 |