mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-22 14:26:45 +00:00
15 lines
392 B
Python
15 lines
392 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}")
|
|
|
|
|
|
class RegionNotFoundError(NotFoundError):
|
|
entity_name: str = "RegionEnum"
|
|
entity_value_name: str = "region"
|