markowitz.data_providers.exceptions¶
markowitz.data_providers.exceptions
¶
Typed Polygon error hierarchy.
All errors raised by :class:PolygonProvider inherit from
:class:PolygonError so a single except PolygonError clause catches the
whole family. Subclasses let call sites pattern-match on auth (401/403),
rate-limit (429), and payload-shape failures separately.
PolygonAuthError
¶
Bases: PolygonError
Raised on HTTP 401/403 — missing or invalid API key.
PolygonDataError
¶
Bases: PolygonError
Raised when the response payload is missing expected fields or is empty.
PolygonError
¶
Bases: Exception
Base class for every Polygon-originated failure.
PolygonRateLimitError
¶
Bases: PolygonError
Raised after exhausting retries on HTTP 429.