14 lines
367 B
Python
14 lines
367 B
Python
"""Errors raised by repository adapters."""
|
|
|
|
|
|
class RepositoryError(Exception):
|
|
"""Base error for persistence boundary failures."""
|
|
|
|
|
|
class EntityNotFoundError(RepositoryError):
|
|
"""Raised when an update targets a missing entity."""
|
|
|
|
|
|
class InvalidRepositoryField(RepositoryError):
|
|
"""Raised when a caller attempts to mutate an immutable/unknown field."""
|