A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://rubydoc.info/github/piotrmurach/github/master/Github/Error/ClientError below:

ClientError – Documentation for piotrmurach/github (master) – RubyDoc.info

Exception: Github::Error::ClientError 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 #problem ⇒ Object

Returns the value of attribute problem.

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

def problem
  @problem
end
#resolution ⇒ Object

Returns the value of attribute resolution.

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

def resolution
  @resolution
end
#summary ⇒ Object

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4