didier/database/exceptions/constraints.py

10 lines
298 B
Python
Raw Normal View History

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