Exception: Vindi::APIError
Direct Known Subclasses
ForbiddenError, InternalServerError, NotFoundError, RateLimitError, UnauthorizedError, UnprocessableEntityError
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.
9 10 11 12 13 |
# File 'lib/vindi/errors.rb', line 9 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.
7 8 9 |
# File 'lib/vindi/errors.rb', line 7 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/vindi/errors.rb', line 7 def status @status end |