feat: define accountnotfound and captcha notfound err vals

This commit is contained in:
realaravinth
2022-05-13 19:08:14 +05:30
parent a7590ea14e
commit 3edb2252af

View File

@@ -38,6 +38,12 @@ pub enum DBError {
/// Captcha key is taken /// Captcha key is taken
#[error("Captcha key is taken")] #[error("Captcha key is taken")]
CaptchaKeyTaken, CaptchaKeyTaken,
/// Account not found
#[error("Account not found")]
AccountNotFound,
/// Captcha not found
#[error("Captcha not found")]
CaptchaNotFound,
} }
/// Convenience type alias for grouping driver-specific errors /// Convenience type alias for grouping driver-specific errors