Enum orca::errors::RedditError[][src]

pub enum RedditError {
    NotFound {
        request: String,
    },
    Forbidden {
        request: String,
    },
    BadResponse {
        request: String,
        response: String,
    },
    BadRequest {
        request: String,
        response: String,
    },
    AuthError,
}

An enum containing possible errors from a request to reddit

Variants

The requested resource was not found

Fields of NotFound

The requested resource

The requested resource is forbidden

Fields of Forbidden

The requested resource

Recieved a response that was unexpected

Fields of BadResponse

The request that was sent

The response that was recieved

A request was sent that was incorrect

Fields of BadRequest

The request that was sent

The response that was recieved

Authorization failed

Trait Implementations

impl Debug for RedditError
[src]

Formats the value using the given formatter. Read more

impl Fail for RedditError
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for RedditError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RedditError

impl Sync for RedditError