"""Typed error hierarchy for the resource-management API.Three top-level error classes give consumers a uniform catchsurface across all twelve :class:`ResourceRepository`implementations without breaking the existing per-domain errorclasses. Each per-domain error (``RegistryLoadError``,``ManualParseError``, etc.) subclasses the appropriate top-levelerror."""from__future__importannotationsfrom..errorsimportAeatError,CoreNotFoundError
[docs]classResourceLoadError(AeatError):"""Base class for every failure to load a bundled resource."""
[docs]classResourceNotFoundError(ResourceLoadError,CoreNotFoundError):"""A resource key does not resolve to any bundled file. Raised when the underlying bundled-data path does not exist or when a queried identifier has no record in the loaded catalogue. Inherits from CoreNotFoundError to participate in the shared not-found catch surface across all layers. """
[docs]classResourceValidationError(ResourceLoadError):"""A bundled file exists but fails strict pydantic validation."""
[docs]classResourceBackendError(ResourceLoadError):"""An IO or backend-level failure while reading the bundled data."""