class Srcom::StatusException
- Srcom::StatusException
- Exception
- Reference
- Object
Overview
This exception is raised in Api#request
and Api#request_single_item
when a request
fails in general, without returning a special error response.
Direct Known Subclasses
Defined in:
srcr/exceptions.crConstructors
Instance Method Summary
- #message
- #response : HTTP::Client::Response
-
#status_code : Int32
The status code of the response that caused this exception, for example 500 or 418.
-
#status_message : String
The status message of the response that caused this exception, for example "Internal Server Error" or "I'm A Teapot".
- #to_s(io)
Constructor Detail
Instance Method Detail
def status_code : Int32
#
The status code of the response that caused this exception, for example 500 or 418.
def status_message : String
#
The status message of the response that caused this exception, for example "Internal Server Error" or "I'm A Teapot".