Files
Gwendolyn/gwendolyn/exceptions.py
2024-10-31 22:38:59 +01:00

9 lines
353 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 CannotConnectToService(Exception):
def __init__(self, service: str) -> None:
self.message = f"Cannot connect to {service}"
super().__init__(self.message)