Enum raystack::Error [−][src]
pub enum Error { Grid { err_grid: Grid, }, Http { err: Error, }, ParseJsonGrid(ParseJsonGridError), TimeZone { err_time_zone: String, }, UpdateAuthToken(AuthError), }
Expand description
Describes the kinds of errors that can occur in this crate.
Variants
The grid contained error information from the server.
Show fields
Fields of Grid
err_grid: Grid
The grid which caused this error.
An error which originated from the underlying HTTP library.
Show fields
Fields of Http
err: Error
ParseJsonGrid(ParseJsonGridError)
An error related to parsing a Grid
from a JSON value.
An error caused by an invalid time zone.
Show fields
Fields of TimeZone
err_time_zone: String
The time zone which caused the error.
UpdateAuthToken(AuthError)
An error occurred when trying to obtain a new auth token from the server.
Implementations
Return a reference to the Haystack error grid encapsulated by this error, if this error was caused by a Haystack error grid.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error