feat: implement repository and unit-of-work patterns for service layer operations
This commit is contained in:
9
services/exceptions.py
Normal file
9
services/exceptions.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""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."""
|
||||
Reference in New Issue
Block a user