From 1f654baac6a8676a21f49689f061a58cfa32e749 Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:35:52 +0800 Subject: [PATCH] Add File --- backend/common/error.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 backend/common/error.py diff --git a/backend/common/error.py b/backend/common/error.py new file mode 100644 index 0000000..09882e2 --- /dev/null +++ b/backend/common/error.py @@ -0,0 +1,19 @@ +class SingleMessageError(Exception): + def __init__(self, message): + super().__init__(message) + self.message = message + + def __str__(self): + return self.message + + +class SQLBotDBConnectionError(Exception): + pass + + +class SQLBotDBError(Exception): + pass + + +class ParseSQLResultError(Exception): + pass