Files
Gwendolyn/gwendolyn/exceptions.py
NikolajDanger cbf2ca765e game stuff
2021-09-30 14:05:50 +02:00

10 lines
381 B
Python

class GameNotInDatabase(Exception):
def __init__(self, game: str, channel: str):
self.message = f"There is no {game} game in channel {channel}"
super().__init__(self.message)
class InvalidInteraction(Exception):
def __init__(self, custom_id: str, decoded: str):
self.message = f"{custom_id = }, {decoded = }"
super().__init__(self.message)