Returns the value of attribute response_headers.
Returns the value of attribute response_message.
Initialize a new Github error object.
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 endInstance 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 endInstance 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