HTTPQueryException

Exception, to be thrown when a web request, such as an API query, failed.

Constructors

this
this(string message, string responseBody, string error, uint code, string file, size_t line, Throwable nextInChain)

Create a new HTTPQueryException, attaching a response body, an error and an HTTP status code.

this
this(string message, string file, size_t line, Throwable nextInChain)

Create a new HTTPQueryException, without attaching anything.

Members

Variables

code
uint code;

The HTTP code that was received.

error
string error;

The message of any thrown exception, if the query failed.

responseBody
string responseBody;

The response body that was received.