didier/database/exceptions/constraints.py

10 lines
298 B
Python
Raw Normal View History

2022-08-29 23:32:46 +00:00
__all__ = ["DuplicateInsertException", "ForbiddenNameException"]
2022-07-11 20:23:38 +00:00
2022-06-21 21:58:21 +00:00
class DuplicateInsertException(Exception):
"""Exception raised when a value already exists"""
2022-08-29 23:32:46 +00:00
class ForbiddenNameException(Exception):
"""Exception raised when trying to insert something with a name that isn't allowed"""