fastapi-svelte-template/backend/todo/exceptions.py

20 lines
406 B
Python
Raw Normal View History

"""This module is a collection of project-wide exceptions."""
class NotFoundException(Exception):
"""Raised when a resource was unexpectedly not found."""
pass
class DataIntegrityException(Exception):
"""Raised when a resource was unexpectedly not found."""
pass
class InvalidFilterParameterException(Exception):
"""Raised when a query filter parameter is invalid."""
pass