Files
calminer/services/exceptions.py

10 lines
294 B
Python

"""Domain-level exceptions for service and repository layers."""
class EntityNotFoundError(Exception):
"""Raised when a requested entity cannot be located."""
class EntityConflictError(Exception):
"""Raised when attempting to create or update an entity that violates uniqueness."""