[][src]Enum raystack::Error

pub enum Error {
    Grid {
        err_grid: Grid,
    },
    Http {
        err: Error,
    },
    ParseJsonGrid(ParseJsonGridError),
    UpdateAuthToken(AuthError),
}

Describes the kinds of errors that can occur in this crate.

Variants

Grid

The grid contained error information from the server.

Fields of Grid

err_grid: Grid

The grid which caused this error.

Http

An error which originated from the underlying HTTP library.

Fields of Http

err: Error
ParseJsonGrid(ParseJsonGridError)

An error related to parsing a Grid from a JSON value.

UpdateAuthToken(AuthError)

An error occurred when trying to obtain a new auth token from the server.

Implementations

impl Error[src]

pub fn is_grid(&self) -> bool[src]

Return true if this error encapsulates a Haystack error grid.

pub fn grid(&self) -> Option<&Grid>[src]

Return a reference to the Haystack error grid encapsulated by this error, if this error was caused by a Haystack error grid.

pub fn into_grid(self) -> Option<Grid>[src]

Return the Haystack error grid encapsulated by this error, if this error was caused by a Haystack error grid.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<AuthError> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for EvalError[src]

impl From<ParseJsonGridError> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.