"""Lightweight validation error base for root domain value objects.Defines :class:`DomainValidationError`, the :class:`core.errors.AeatError`subclass that also behaves as :exc:`ValueError` so Pydantic validators cansurface invalid domain identifiers and models as validation failures.This module is not a catch-all domain error hierarchy. Focused domain packagesown their package-specific ``_errors.py`` trees and register those classes withthe central error registry. The root validation base exists for lightweightcross-domain primitives such as :class:`domain.ModeloIdentifier`, whereimporting a larger package-specific authority would be the wrong dependency."""from__future__importannotationsfrom..core.errorsimportAeatError
[docs]classDomainValidationError(AeatError,ValueError):"""Raised when root-level domain identifiers or value objects are invalid."""