Source code for pygleif.v2.error

"""Errors for the pygleif v2 client."""

from __future__ import annotations


[docs] class PyGLEIFError(Exception): """Base error for v2."""
[docs] class PyGLEIFApiError(PyGLEIFError): """Raised for HTTP / transport failures against the GLEIF API."""
[docs] class PyGLEIFNotFoundError(PyGLEIFApiError): """Raised when a requested resource does not exist (HTTP 404)."""
[docs] class PyGLEIFRateLimitError(PyGLEIFApiError): """Raised when the GLEIF rate limit is exceeded (HTTP 429)."""