Enum greader_api::error::ApiError
source · pub enum ApiError {
Url(ParseError),
Json {
source: Error,
json: String,
},
Http(Error),
GReader(GReaderError),
BadRequest,
Input,
Token,
AccessDenied,
TokenExpired,
Parse,
NotLoggedIn,
Other(String),
}Variants§
Url(ParseError)
Json
Http(Error)
GReader(GReaderError)
BadRequest
Input
Token
AccessDenied
TokenExpired
Parse
NotLoggedIn
Other(String)
Implementations§
source§impl ApiError
impl ApiError
pub fn parse_error(error: GReaderError) -> Self
Trait Implementations§
source§impl Error for ApiError
impl Error for ApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for ApiError
impl From<ParseError> for ApiError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.