24 lines
440 B
Rust
Raw Normal View History

mod context;
#[cfg(feature="internal")]
pub mod internal;
#[cfg(feature="external")]
pub mod external;
//lazy reexport
pub type ReqwestError=reqwest::Error;
#[derive(Debug)]
2024-12-06 19:36:10 -08:00
pub enum Error{
ParseError(url::ParseError),
Reqwest(reqwest::Error),
2024-12-14 00:15:05 -08:00
JSON(serde_json::Error),
}
2024-12-06 19:36:10 -08:00
impl std::fmt::Display for Error{
fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{
write!(f,"{self:?}")
}
}
2024-12-06 19:36:10 -08:00
impl std::error::Error for Error{}