"""Domain errors for the :mod:`aeat.domain.categories` subpackage."""from__future__importannotationsfrom...core.errorsimportAeatError
[docs]classCategoryError(AeatError):"""Base class for every error raised by :mod:`aeat.domain.categories`."""
[docs]classCategoryValidationError(CategoryError,ValueError):"""Raised when category records or registries violate state or shape invariants. Inherits from ValueError to maintain compatibility with Pydantic validators. """