Exception: Github::Error::ClientError
- Inherits:
-
GithubError
- Object
- StandardError
- GithubError
- Github::Error::ClientError
- Defined in:
- lib/github_api/error/client_error.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) problem
readonly
Returns the value of attribute problem.
-
- (Object) resolution
readonly
Returns the value of attribute resolution.
-
- (Object) summary
readonly
Returns the value of attribute summary.
Attributes inherited from GithubError
#response_headers, #response_message
Instance Method Summary (collapse)
- - (Object) generate_message(attributes)
-
- (ClientError) initialize(message)
constructor
A new instance of ClientError.
Methods inherited from GithubError
Methods included from Descendants
Constructor Details
- (ClientError) initialize(message)
A new instance of ClientError
9 10 11 |
# File 'lib/github_api/error/client_error.rb', line 9 def initialize() super() end |
Instance Attribute Details
- (Object) problem (readonly)
Returns the value of attribute problem
7 8 9 |
# File 'lib/github_api/error/client_error.rb', line 7 def problem @problem end |
- (Object) resolution (readonly)
Returns the value of attribute resolution
7 8 9 |
# File 'lib/github_api/error/client_error.rb', line 7 def resolution @resolution end |
- (Object) summary (readonly)
Returns the value of attribute summary
7 8 9 |
# File 'lib/github_api/error/client_error.rb', line 7 def summary @summary end |
Instance Method Details
- (Object) generate_message(attributes)
13 14 15 16 17 |
# File 'lib/github_api/error/client_error.rb', line 13 def (attributes) "\nProblem:\n #{attributes[:problem]}"+ "\nSummary:\n #{attributes[:summary]}"+ "\nResolution:\n #{attributes[:resolution]}" end |