mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
8f424bf0d4
♻️ 重构插件系统 ⚙️ 重写插件 🎨 改进代码结构 📝 完善文档 Co-authored-by: zhxy-CN <admin@owo.cab> Co-authored-by: 洛水居室 <luoshuijs@outlook.com> Co-authored-by: xtaodada <xtao@xtaolink.cn> Co-authored-by: Li Chuangbo <im@chuangbo.li>
18 lines
486 B
Python
18 lines
486 B
Python
class CookieServiceError(Exception):
|
|
pass
|
|
|
|
|
|
class CookiesCachePoolExhausted(CookieServiceError):
|
|
def __init__(self):
|
|
super().__init__("Cookies cache pool is exhausted")
|
|
|
|
|
|
class CookiesNotFoundError(CookieServiceError):
|
|
def __init__(self, user_id):
|
|
super().__init__(f"{user_id} cookies not found")
|
|
|
|
|
|
class TooManyRequestPublicCookies(CookieServiceError):
|
|
def __init__(self, user_id):
|
|
super().__init__(f"{user_id} too many request public cookies")
|