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