[][src]Enum ucare::ErrValue

pub enum ErrValue {
    BadRequest(String),
    Unauthorized(String),
    Forbidden(String),
    NotFound(String),
    NotAcceptable(String),
    PayloadTooLarge(String),
    TooManyRequests(i32),
    Reqwest(Error),
    InputOutput(Error),
    SerdeJson(Error),
    ParseUrl(ParseError),
    Other(String),
}

Represents possible errors returned by the library

Variants

BadRequest(String)

Endpoint parameters error

Unauthorized(String)

Authorization errors

Forbidden(String)

Forbidden error

NotFound(String)

Not found error

NotAcceptable(String)

Invalid version header Accept for the endpoint

PayloadTooLarge(String)

Payload too large

TooManyRequests(i32)

Request was throttled

Reqwest(Error)

Errors returned from reqwest underlying lib

InputOutput(Error)

Errors returned from io

SerdeJson(Error)

JSON serialization/deserialization errors

ParseUrl(ParseError)

Url parsing errors

Other(String)

Other custom errors

Trait Implementations

impl Default for ErrValue[src]

impl Display for ErrValue[src]

Auto Trait Implementations

impl !RefUnwindSafe for ErrValue

impl Send for ErrValue

impl Sync for ErrValue

impl Unpin for ErrValue

impl !UnwindSafe for ErrValue

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, 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.