Exception: Gitwrap::Exception::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Gitwrap::Exception::APIError
- Defined in:
- lib/gitwrap/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_status ⇒ Object
Returns the value of attribute http_status.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
Instance Method Summary collapse
-
#initialize ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize ⇒ APIError
Returns a new instance of APIError.
6 7 8 9 |
# File 'lib/gitwrap/error.rb', line 6 def initialize = "[HTTP #{http_status}] #{response_body}" super () end |
Instance Attribute Details
#http_status ⇒ Object
Returns the value of attribute http_status.
4 5 6 |
# File 'lib/gitwrap/error.rb', line 4 def http_status @http_status end |
#response_body ⇒ Object
Returns the value of attribute response_body.
4 5 6 |
# File 'lib/gitwrap/error.rb', line 4 def response_body @response_body end |