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
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -38,6 +38,12 @@ pub enum DBError {
/// Captcha key is taken
#[error("Captcha key is taken")]
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