2024-05-11 16:37:41 +00:00
|
|
|
use sea_orm::DbErr;
|
|
|
|
use thiserror::Error;
|
|
|
|
|
|
|
|
#[derive(Error, Debug)]
|
|
|
|
#[error("opds error")]
|
|
|
|
pub enum Error {
|
2024-05-11 16:51:55 +00:00
|
|
|
/// Database Error
|
2024-05-11 16:37:41 +00:00
|
|
|
#[error("opds error")]
|
|
|
|
DbError(#[from] DbErr),
|
2024-05-11 16:51:55 +00:00
|
|
|
/// Error fetching data from alertswiss
|
2024-05-11 16:37:41 +00:00
|
|
|
#[error("data error")]
|
|
|
|
FetchError(#[from] reqwest::Error),
|
|
|
|
}
|