cqwu-ehall/cqwu/errors/auth.py

21 lines
359 B
Python
Raw Permalink Normal View History

from .base import CQWUEhallError
class AuthError(CQWUEhallError):
2022-08-10 15:12:43 +00:00
pass
class UsernameOrPasswordError(AuthError):
2023-12-29 10:04:00 +00:00
"""用户名或密码错误"""
class CookieError(AuthError):
2023-12-29 10:04:00 +00:00
"""Cookie 失效"""
class NeedCaptchaError(AuthError):
2023-12-29 10:04:00 +00:00
"""需要验证码才能登录"""
def __init__(self, captcha: bytes):
self.captcha = captcha