Files
Gwendolyn/gwendolyn/exceptions.py
2024-10-29 15:20:28 +01:00

9 lines
341 B
Python

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)