From 0f7a7ef44f76c8668a6b2ba295dcf455fb9c76a9 Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Sun, 30 Jun 2024 11:43:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0ImmediateException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/schemas/exception.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/schemas/exception.py diff --git a/app/schemas/exception.py b/app/schemas/exception.py new file mode 100644 index 00000000..8a536d71 --- /dev/null +++ b/app/schemas/exception.py @@ -0,0 +1,6 @@ +class ImmediateException(Exception): + """ + 用于立即抛出异常而不重试的特殊异常类。 + 当不希望使用重试机制时,可以抛出此异常。 + """ + pass