Skip to main content

errors.CatalogError

A CDSE catalog request failed, or its response cannot be used.

Usage

Source

errors.CatalogError(
    *args,
    status_code=None,
)

Raised when the catalog cannot be reached, answers with an HTTP error, for example HTTP 414 for a search geometry with too many vertices, or returns a malformed response. The underlying requests error is kept as the cause.

Parameters

*args: object

The message, as for any exception.

status_code: int | None = None
HTTP status of the catalog’s response.

Attributes

status_code
HTTP status of the catalog’s error response, such as 414 or 503. None if the catalog could not be reached or answered successfully with an unusable response.