✨
This commit is contained in:
9
gwendolyn/exceptions.py
Normal file
9
gwendolyn/exceptions.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class NoToken(Exception):
|
||||
def __init__(self) -> None:
|
||||
self.message = "No discord bot token has been set in the .env file"
|
||||
super().__init__(self.message)
|
||||
|
||||
class MongoCannotConnect(Exception):
|
||||
def __init__(self) -> None:
|
||||
self.message = "Cannot connect to the mongo client"
|
||||
super().__init__(self.message)
|
||||
Reference in New Issue
Block a user