Enum razberry::RazberryError
[−]
[src]
pub enum RazberryError { BadCredentials, ParseError { cause: ParserError, }, BadResponse, ServerError, ClientError, BadRequest, }
Represents library errors.
Variants
BadCredentials
The client was not authorized to poll the gateway. This is the result of a bad session / invalid credentials.
ParseError
The client could not parse JSON from the gateway.
Fields of ParseError
cause: ParserError | Original error. |
BadResponse
Bad response from the Razberry gateway.
ServerError
Some kind of error from the Razberry gateway.
ClientError
BadRequest
Trait Implementations
impl Debug for RazberryError
[src]
impl From<ParserError> for RazberryError
[src]
fn from(error: ParserError) -> RazberryError
Performs the conversion.