mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Creating bookmarks + message command
This commit is contained in:
parent
8308b4ad9a
commit
12d2017cbe
8 changed files with 234 additions and 11 deletions
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue