pub enum ApiError {
HTTPResponseError(StatusCode, String),
HTTPTooManyRedirectsError,
RedirectError(String),
InputDataError(String),
DataAvailableError(String),
}
Variants§
HTTPResponseError(StatusCode, String)
The API returned a non-OK HTTP response.
HTTPTooManyRedirectsError
Returned after being redirected more than five times.
RedirectError(String)
E.g. a redirect was issued without a Location: header.
InputDataError(String)
Invalid data was supplied to the library.
DataAvailableError(String)
Data for download is available, but the caller hasn’t supplied a destination to write to.
Trait Implementations§
source§impl Error for ApiError
impl Error for ApiError
1.30.0 · 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()