Exception: Github::Error::ClientError

Inherits:
GithubError
  • Object
show all
Defined in:
lib/github_api/error/client_error.rb

Instance Attribute Summary collapse

Attributes inherited from GithubError

#response_headers, #response_message

Instance Method Summary collapse

Methods inherited from GithubError

#backtrace

Constructor Details

#initialize(message) ⇒ ClientError

Returns a new instance of ClientError.



11
12
13
# File 'lib/github_api/error/client_error.rb', line 11

def initialize(message)
  super(message)
end

Instance Attribute Details

#problemObject (readonly)

Returns the value of attribute problem.



9
10
11
# File 'lib/github_api/error/client_error.rb', line 9

def problem
  @problem
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



9
10
11
# File 'lib/github_api/error/client_error.rb', line 9

def resolution
  @resolution
end

#summaryObject (readonly)

Returns the value of attribute summary.



9
10
11
# File 'lib/github_api/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_api/error/client_error.rb', line 15

def generate_message(attributes)
  @problem = attributes[:problem]
  @summary = attributes[:summary]
  @resolution = attributes[:resolution]
  "\nProblem:\n #{@problem}"+
  "\nSummary:\n #{@summary}"+
  "\nResolution:\n #{@resolution}"
end
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy