Exception: Rubord::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Rubord::APIError
- Defined in:
- lib/rubord/structs/rest.rb
Direct Known Subclasses
BadRequestError, ForbiddenError, NotFoundError, RateLimitError, ServerError, UnauthorizedError
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status = nil, response_body = nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status = nil, response_body = nil) ⇒ APIError
Returns a new instance of APIError.
362 363 364 365 366 |
# File 'lib/rubord/structs/rest.rb', line 362 def initialize(, status = nil, response_body = nil) super() @status = status @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
360 361 362 |
# File 'lib/rubord/structs/rest.rb', line 360 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
360 361 362 |
# File 'lib/rubord/structs/rest.rb', line 360 def status @status end |