exceptions.py 537 B

123456789101112131415161718
  1. class DataLayerError(Exception):
  2. """Base exception for the data layer."""
  3. class DependencyError(DataLayerError):
  4. """Raised when an optional runtime dependency is required but missing."""
  5. class ProviderError(DataLayerError):
  6. """Raised when a provider request fails or returns unusable data."""
  7. class UnknownInstrumentError(DataLayerError):
  8. """Raised when the requested instrument is not configured."""
  9. class MissingLayerError(DataLayerError):
  10. """Raised when a repair operation cannot find its source layer."""