Enum orca::errors::RedditError
source · pub enum RedditError {
NotFound {
request: String,
},
Forbidden {
request: String,
},
BadResponse {
request: String,
response: String,
},
BadRequest {
request: String,
response: String,
},
AuthError,
}
Expand description
An enum containing possible errors from a request to reddit
Variants§
NotFound
The requested resource was not found
Forbidden
The requested resource is forbidden
BadResponse
Recieved a response that was unexpected
BadRequest
A request was sent that was incorrect
AuthError
Authorization failed
Trait Implementations§
source§impl Debug for RedditError
impl Debug for RedditError
source§impl Display for RedditError
impl Display for RedditError
source§impl Fail for RedditError
impl Fail for RedditError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more