Skip to main content

news_flash/util/favicons/
error.rs

1use crate::database::DatabaseError;
2use thiserror::Error;
3use tokio::sync::AcquireError;
4
5#[derive(Error, Debug)]
6pub enum FavIconError {
7    #[error("Error performing DB operation")]
8    DB(#[from] DatabaseError),
9    #[error("Http request failed")]
10    Http(#[from] reqwest::Error),
11    #[error("Error parsing HTML")]
12    Html,
13    #[error("No Feed")]
14    NoFeed,
15    #[error("Error resizing icon")]
16    Resize,
17    #[error("Couldn't acquire download permit from semaphore")]
18    Semaphore(#[from] AcquireError),
19}