添加 RegionNotFoundError 异常类

This commit is contained in:
洛水居室 2022-08-04 21:16:32 +08:00
parent ec0731a1ce
commit 7c90b27934
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -7,3 +7,8 @@ class NotFoundError(Exception):
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"