From 7c90b279345565d1f6193a9589487414c7c6f175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Thu, 4 Aug 2022 21:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=20`RegionNotFoun?= =?UTF-8?q?dError`=20=E5=BC=82=E5=B8=B8=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/error.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/error.py b/utils/error.py index 5e175a30..5f3bc3a7 100644 --- a/utils/error.py +++ b/utils/error.py @@ -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"