pub enum KagiError {
ConfigError(ConfigError),
ReqwestError(Error),
StatusCodeError(StatusCode),
ReqwestMiddlewareError(Error),
VCRMiddlewareError(String),
UrlError(ParseError),
HeaderError(String),
EnvError(&'static str),
}
Variants§
ConfigError(ConfigError)
An error occurred while processing a crate::KagiConfig.
ReqwestError(Error)
An error occurred in connection with performing a reqwest.
StatusCodeError(StatusCode)
ReqwestMiddlewareError(Error)
An error performed while handling reqwest_middleware.
VCRMiddlewareError(String)
An error occurred while handling the particular rvcr recording middleware.
UrlError(ParseError)
An error occurred parsing a url::Url.
HeaderError(String)
An error occurred when formulating an HTTP header.
EnvError(&'static str)
An error occurred when reading an environment variable.
Trait Implementations§
Source§impl Error for KagiError
impl Error for KagiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for KagiError
impl !RefUnwindSafe for KagiError
impl Send for KagiError
impl Sync for KagiError
impl Unpin for KagiError
impl !UnwindSafe for KagiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more