pub enum DBError {
DBError(BoxDynError),
UsernameTaken,
EmailTaken,
SecretTaken,
CaptchaKeyTaken,
AccountNotFound,
CaptchaNotFound,
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
Variants§
DBError(BoxDynError)
errors that are specific to a database implementation
UsernameTaken
Username is taken
EmailTaken
Email is taken
SecretTaken
Secret is taken
CaptchaKeyTaken
Captcha key is taken
AccountNotFound
Account not found
CaptchaNotFound
Captcha not found
TrafficPatternNotFound
Traffic pattern not found
NotificationNotFound
Notification not found
Trait Implementations§
source§impl Error for DBError
impl Error for DBError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()