PaiGram/utils/error.py
2022-07-26 18:07:31 +08:00

10 lines
274 B
Python

"""此模块包含BOT的错误的基类"""
class NotFoundError(Exception):
entity_name: str
entity_value_name: str = "value"
def __init__(self, entity_value):
super().__init__(f"{self.entity_name} not found, {self.entity_value_name}: {entity_value}")