didier/database/exceptions/constraints.py
2022-08-30 01:32:46 +02:00

9 lines
298 B
Python

__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"""