Add File
This commit is contained in:
19
backend/common/error.py
Normal file
19
backend/common/error.py
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user