Exception: Github::Error::Validations
- Inherits:
-
ClientError
- Object
- StandardError
- GithubError
- ClientError
- Github::Error::Validations
- Defined in:
- lib/github_api2/error/client_error.rb
Instance Attribute Summary
Attributes inherited from ClientError
#problem, #resolution, #summary
Attributes inherited from GithubError
#response_headers, #response_message
Instance Method Summary collapse
-
#initialize(errors) ⇒ Validations
constructor
A new instance of Validations.
Methods inherited from ClientError
Methods inherited from GithubError
Constructor Details
#initialize(errors) ⇒ Validations
Returns a new instance of Validations.
78 79 80 81 82 83 84 85 86 |
# File 'lib/github_api2/error/client_error.rb', line 78 def initialize(errors) super( ( problem: "Attempted to send request with nil arguments for #{errors.keys.join(', ')}.", summary: 'Each request expects certain number of required arguments.', resolution: 'Double check that the provided arguments are set to some value that is neither nil nor empty string.' ) ) end |