#[derive(Debug, thiserror::Error)]
pub enum CatchupError {
#[error("catchup is disabled for this channel")]
Disabled,
#[error("invalid catchup source: {0}")]
InvalidSource(String),
#[error("requested time {requested} is outside the catchup window of {window_days} days")]
OutsideWindow { requested: i64, window_days: i32 },
#[error("failed to parse {provider} URL: {url}")]
UrlParseFailed { provider: String, url: String },
#[error("regex error: {0}")]
Regex(#[from] regex::Error),
}