Exception: Github::Error::GithubError
- Inherits:
-
StandardError
- Object
- StandardError
- Github::Error::GithubError
- Extended by:
- DescendantsTracker
- Defined in:
- lib/github_api2/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response_headers ⇒ Object
readonly
Returns the value of attribute response_headers.
-
#response_message ⇒ Object
readonly
Returns the value of attribute response_message.
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(message = $!) ⇒ GithubError
constructor
Initialize a new Github error object.
Constructor Details
#initialize(message = $!) ⇒ GithubError
Initialize a new Github error object.
14 15 16 17 18 19 20 21 |
# File 'lib/github_api2/error.rb', line 14 def initialize( = $!) if .respond_to?(:backtrace) super(.) @response_message = else super(.to_s) end end |
Instance Attribute Details
#response_headers ⇒ Object (readonly)
Returns the value of attribute response_headers.
10 11 12 |
# File 'lib/github_api2/error.rb', line 10 def response_headers @response_headers end |
#response_message ⇒ Object (readonly)
Returns the value of attribute response_message.
10 11 12 |
# File 'lib/github_api2/error.rb', line 10 def @response_message end |
Instance Method Details
#backtrace ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/github_api2/error.rb', line 23 def backtrace if @response_message.respond_to?(:backtrace) @response_message.backtrace else super end end |