2025-06-16 09:11:41 +08:00
|
|
|
class HookPriorityException(BaseException):
|
|
|
|
|
"""
|
|
|
|
|
钩子优先级异常
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
def __init__(self, info: str = "") -> None:
|
|
|
|
|
self.info = info
|
|
|
|
|
|
|
|
|
|
def __str__(self) -> str:
|
|
|
|
|
return self.info
|
|
|
|
|
|
|
|
|
|
|
2024-02-04 04:18:54 +08:00
|
|
|
class NotFoundError(Exception):
|
2024-02-26 03:04:32 +08:00
|
|
|
"""
|
|
|
|
|
未发现
|
|
|
|
|
"""
|
|
|
|
|
|
2024-02-04 04:18:54 +08:00
|
|
|
pass
|
2024-02-25 03:18:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class GroupInfoNotFound(Exception):
|
2024-02-26 03:04:32 +08:00
|
|
|
"""
|
|
|
|
|
群组未找到
|
|
|
|
|
"""
|
|
|
|
|
|
2024-02-25 03:18:34 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmptyError(Exception):
|
2024-02-26 03:04:32 +08:00
|
|
|
"""
|
|
|
|
|
空错误
|
|
|
|
|
"""
|
|
|
|
|
|
2024-02-25 03:18:34 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UserAndGroupIsNone(Exception):
|
2024-02-26 03:04:32 +08:00
|
|
|
"""
|
|
|
|
|
用户和群组为空
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InsufficientGold(Exception):
|
|
|
|
|
"""
|
|
|
|
|
金币不足
|
|
|
|
|
"""
|
|
|
|
|
|
2024-02-25 03:18:34 +08:00
|
|
|
pass
|
2024-05-20 22:03:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class NotFindSuperuser(Exception):
|
|
|
|
|
"""
|
|
|
|
|
未找到超级用户
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
pass
|
2024-08-16 19:54:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class GoodsNotFound(Exception):
|
|
|
|
|
"""
|
|
|
|
|
或找到道具
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
pass
|