ds_fetch_py_sdk.errors

Exceptions raised by the SDK.

Module Contents

exception ds_fetch_py_sdk.errors.AICError[source]

Bases: Exception

Base for every error raised by this SDK.

exception ds_fetch_py_sdk.errors.AuthError[source]

Bases: AICError

Sign-in or token acquisition failed.

exception ds_fetch_py_sdk.errors.NetworkError[source]

Bases: AICError

The API could not be reached, or did not answer in time, after retries.

exception ds_fetch_py_sdk.errors.APIError(status: int, code: str, message: str, *, request_id: str | None = None, retry_after: int = 0, recoverable: bool = False)[source]

Bases: AICError

The API answered with an error.

exception ds_fetch_py_sdk.errors.QueryError(code: str, message: str, details: list[ds_fetch_py_sdk.models.FieldError], *, request_id: str | None)[source]

Bases: APIError

The SQL was rejected (HTTP 422). Fix the query; retrying will not help.