Exception: Github::Error::ClientError
- Inherits:
-
GithubError
- Object
- StandardError
- GithubError
- Github::Error::ClientError
- Defined in:
- lib/github_api2/error/client_error.rb
Direct Known Subclasses
InvalidOptions, RequiredParams, UnknownMedia, UnknownValue, Validations
Instance Attribute Summary collapse
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Attributes inherited from GithubError
#response_headers, #response_message
Instance Method Summary collapse
- #generate_message(attributes) ⇒ Object
-
#initialize(message) ⇒ ClientError
constructor
A new instance of ClientError.
Methods inherited from GithubError
Constructor Details
#initialize(message) ⇒ ClientError
Returns a new instance of ClientError.
11 12 13 |
# File 'lib/github_api2/error/client_error.rb', line 11 def initialize() super() end |
Instance Attribute Details
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
9 10 11 |
# File 'lib/github_api2/error/client_error.rb', line 9 def problem @problem end |
#resolution ⇒ Object (readonly)
Returns the value of attribute resolution.
9 10 11 |
# File 'lib/github_api2/error/client_error.rb', line 9 def resolution @resolution end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
9 10 11 |
# File 'lib/github_api2/error/client_error.rb', line 9 def summary @summary end |
Instance Method Details
#generate_message(attributes) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/github_api2/error/client_error.rb', line 15 def (attributes) @problem = attributes[:problem] @summary = attributes[:summary] @resolution = attributes[:resolution] "\nProblem:\n #{@problem}"+ "\nSummary:\n #{@summary}"+ "\nResolution:\n #{@resolution}" end |