2025-05-24 09:17:45 +09:00
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
|
|
pub enum Error {
|
2025-05-25 17:19:37 +09:00
|
|
|
#[error("DB Error: {0}")]
|
|
|
|
Db(#[from]sea_orm::DbErr),
|
2025-05-30 09:26:47 +09:00
|
|
|
#[error("IO Error: {0}")]
|
|
|
|
Io(#[from]std::io::Error),
|
2025-05-24 09:17:45 +09:00
|
|
|
#[error("mandatory config `{0}` is missing")]
|
|
|
|
MissingConfig(String),
|
2025-05-30 09:26:47 +09:00
|
|
|
#[error("toml deserialization error: {0}")]
|
|
|
|
TomlDe(#[from] toml::de::Error),
|
|
|
|
#[error("toml serialization error: {0}")]
|
|
|
|
TomlSer(#[from] toml::ser::Error),
|
2025-05-24 09:17:45 +09:00
|
|
|
}
|