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