Enum razberry::RazberryError [] [src]

pub enum RazberryError {
    BadCredentials,
    ParseError {
        cause: ParserError,
    },
    BadResponse,
    ServerError,
    ClientError,
    BadRequest,
}

Represents library errors.

Variants

The client was not authorized to poll the gateway. This is the result of a bad session / invalid credentials.

The client could not parse JSON from the gateway.

Fields of ParseError

Original error.

Bad response from the Razberry gateway.

Some kind of error from the Razberry gateway.

Trait Implementations

impl Debug for RazberryError
[src]

Formats the value using the given formatter.

impl From<ParserError> for RazberryError
[src]

Performs the conversion.