TwitchQueryException

Exception, to be thrown when an API query to the Twitch servers failed, for whatever reason.

It is a normal Exception but with attached metadata.

Constructors

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

Create a new TwitchQueryException, 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 TwitchQueryException, 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.