use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
#[error("db driver error")]
Sqlx(#[from] sqlx::Error),
#[error("cannot process: {msg}")]
DoesNotExist {
msg: &'static str,
},
#[error("conflict in the system: {msg}")]
Conflict {
msg: &'static str,
},
#[error("throttled: {msg}")]
Throttled {
msg: &'static str,
},
}