#[derive(Debug, thiserror::Error)]
pub enum Web2llmError {
#[error("HTTP error: {0}")]
Http(String),
#[error("Reqwest error: {0}")]
Reqwest(#[from] reqwest::Error),
#[error("Markdown error: {0}")]
Markdown(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("No content found")]
EmptyContent,
#[error("Invalid URL: {0}")]
InvalidUrl(String),
#[error("Disallowed by robots.txt")]
Disallowed,
#[error("Configuration error: {0}")]
Config(String),
}
pub type Result<T> = std::result::Result<T, Web2llmError>;