#[non_exhaustive]pub enum Error {
Middleware(Error),
Http(Error),
Decode(Error),
Url(ParseError),
InvalidHeader(String),
ResponseTooLarge {
received: u64,
limit: u64,
},
}Expand description
Errors returned by altair-rest operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Middleware(Error)
Middleware-chain failure — the typical retry-exhausted / network-error
path. Wraps a reqwest_middleware::Error.
Http(Error)
Raw reqwest::Error — surfaces when a path doesn’t flow through the
middleware stack (e.g. error_for_status results after middleware
has already returned the response).
Decode(Error)
Response body failed to deserialize as the requested type
(get_json / post_json).
Url(ParseError)
Bad URL — typically from crate::ClientBuilder::base_url or
from relative-path resolution at request time.
InvalidHeader(String)
Invalid HTTP header name or value (from
crate::ClientBuilder::default_header).
ResponseTooLarge
Response body exceeded the configured
crate::ClientBuilder::response_body_limit before decoding.
Mitigates OOM from a rogue endpoint streaming gigabytes.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()