1#[derive(Debug, thiserror::Error)]
5pub enum CatchupError {
6 #[error("catchup is disabled for this channel")]
8 Disabled,
9
10 #[error("invalid catchup source: {0}")]
12 InvalidSource(String),
13
14 #[error("requested time {requested} is outside the catchup window of {window_days} days")]
16 OutsideWindow { requested: i64, window_days: i32 },
17
18 #[error("failed to parse {provider} URL: {url}")]
20 UrlParseFailed { provider: String, url: String },
21
22 #[error("regex error: {0}")]
24 Regex(#[from] regex::Error),
25}