Exception: Discorb::HTTPError Abstract
- Inherits:
-
DiscorbError
- Object
- StandardError
- DiscorbError
- Discorb::HTTPError
- Defined in:
- lib/discorb/error.rb
Overview
This class is abstract.
Represents a HTTP error.
Direct Known Subclasses
BadRequestError, CloudFlareBanError, ForbiddenError, NotFoundError, UnauthorizedError
Instance Attribute Summary collapse
-
#response -> Net::HTTPResponse
readonly
The HTTP response.
Instance Method Summary collapse
-
#code -> String
The JSON response code.
Instance Attribute Details
#response -> Net::HTTPResponse (readonly)
Returns the HTTP response.
43 44 45 |
# File 'lib/discorb/error.rb', line 43 def response @response end |
Instance Method Details
#code -> String
Returns the JSON response code.
41 42 43 |
# File 'lib/discorb/error.rb', line 41 def code @code end |