A RetroSearch Logo

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

Search Query:

Showing content from http://rubydoc.info/github/piotrmurach/github/master/Github/Error/GithubError below:

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

Exception: Github::Error::GithubError
Inherits:
StandardError show all
Extended by:
DescendantsTracker
Defined in:
lib/github_api/error.rb
Instance Attribute Summary collapse Instance Method Summary collapse Constructor Details #initialize(message = $!) ⇒ GithubError

Initialize a new Github error object.

14
15
16
17
18
19
20
21
# File 'lib/github_api/error.rb', line 14

def initialize(message = $!)
  if message.respond_to?(:backtrace)
    super(message.message)
    @response_message = message
  else
    super(message.to_s)
  end
end
Instance Attribute Details

Returns the value of attribute response_headers.

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

def 
  @response_headers
end
#response_message ⇒ Object

Returns the value of attribute response_message.

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

def response_message
  @response_message
end
Instance Method Details #backtrace ⇒ Object
23
24
25
26
27
28
29
# File 'lib/github_api/error.rb', line 23

def backtrace
  if @response_message.respond_to?(:backtrace)
    @response_message.backtrace
  else
    super
  end
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