feat: define accountnotfound and captcha notfound err vals
This commit is contained in:
parent
a7590ea14e
commit
3edb2252af
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue