mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
✨ 添加 RegionNotFoundError
异常类
This commit is contained in:
parent
ec0731a1ce
commit
7c90b27934
@ -7,3 +7,8 @@ class NotFoundError(Exception):
|
|||||||
|
|
||||||
def __init__(self, entity_value):
|
def __init__(self, entity_value):
|
||||||
super().__init__(f"{self.entity_name} not found, {self.entity_value_name}: {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"
|
||||||
|
Loading…
Reference in New Issue
Block a user