next_web_utils/captcha/
captcha_error.rs

1
2
3#[derive(Debug, Clone)]
4pub enum CaptchaError {
5    WidthNotApplicable,
6    HeightNotApplicable,
7}
8
9impl std::fmt::Display for CaptchaError  {
10    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11        match self {
12            CaptchaError::WidthNotApplicable => write!(f, "Width not applicable"),
13            CaptchaError::HeightNotApplicable => write!(f, "Height not applicable"),
14        }
15    }
16}
17
18impl std::error::Error for CaptchaError {
19    
20}