Exception: Twitch::Error::ResponseError
- Inherits:
-
Twitch::Error
- Object
- StandardError
- Twitch::Error
- Twitch::Error::ResponseError
- Defined in:
- lib/kappa/errors.rb
Overview
An error that occurred as the result of a request to the Twitch.tv API.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ String
readonly
The response body.
-
#status ⇒ Fixnum
readonly
The HTTP status code for the response.
-
#url ⇒ String
readonly
The request URL that resulted in this response error.
Instance Attribute Details
#body ⇒ String (readonly)
Returns The response body.
27 28 29 |
# File 'lib/kappa/errors.rb', line 27 def body @body end |
#status ⇒ Fixnum (readonly)
Returns The HTTP status code for the response.
22 23 24 |
# File 'lib/kappa/errors.rb', line 22 def status @status end |
#url ⇒ String (readonly)
Returns The request URL that resulted in this response error.
17 18 19 |
# File 'lib/kappa/errors.rb', line 17 def url @url end |