Creating bookmarks + message command

This commit is contained in:
stijndcl 2022-08-30 01:32:46 +02:00
parent 8308b4ad9a
commit 12d2017cbe
8 changed files with 234 additions and 11 deletions

View file

@ -1,5 +1,11 @@
from .constraints import DuplicateInsertException
from .constraints import DuplicateInsertException, ForbiddenNameException
from .currency import DoubleNightly, NotEnoughDinks
from .not_found import NoResultFoundException
__all__ = ["DuplicateInsertException", "DoubleNightly", "NotEnoughDinks", "NoResultFoundException"]
__all__ = [
"DuplicateInsertException",
"ForbiddenNameException",
"DoubleNightly",
"NotEnoughDinks",
"NoResultFoundException",
]

View file

@ -1,5 +1,9 @@
__all__ = ["DuplicateInsertException"]
__all__ = ["DuplicateInsertException", "ForbiddenNameException"]
class DuplicateInsertException(Exception):
"""Exception raised when a value already exists"""
class ForbiddenNameException(Exception):
"""Exception raised when trying to insert something with a name that isn't allowed"""