airflow.providers.apache.polaris.exceptions¶
Exceptions raised by the Apache Polaris provider.
Attributes¶
Exceptions¶
Base class for errors raised by the Apache Polaris provider. |
|
A |
|
An argument is invalid, e.g. a malformed namespace or policy content that is not JSON. |
|
A request to Polaris did not complete (connection refused, timeout, broken connection). |
|
Getting a token failed, or Polaris rejected the token, the realm or the principal's roles. |
|
A Polaris API call failed for a reason other than authentication. |
|
HTTP 403: authenticated, but the principal's active roles lack a required privilege. |
|
HTTP 404: the catalog, principal, role, namespace, table or policy does not exist. |
|
HTTP 409: the request conflicts with the entity's current state. |
Functions¶
|
Whether a request that failed with this HTTP status may succeed when simply sent again. |
Module Contents¶
- airflow.providers.apache.polaris.exceptions.is_retryable_status(status)[source]¶
Whether a request that failed with this HTTP status may succeed when simply sent again.
Server errors (5xx, except 501 Not Implemented), timeouts (408), rate limiting (429) and conflicts (409, e.g. a concurrent update) are retryable. Other client errors (bad request, unauthenticated, forbidden, not found) are not: the request or the access has to change first.
- exception airflow.providers.apache.polaris.exceptions.PolarisError[source]¶
Bases:
ExceptionBase class for errors raised by the Apache Polaris provider.
Not an
AirflowExceptionsubclass, matching recent providers: callers catch provider errors through this base, and the exceptions carry no Airflow task-state semantics.retryabletells whether retrying the same call could succeed. Operators fail their task without retries when it is false; code calling the hooks directly can check it the same way.
- exception airflow.providers.apache.polaris.exceptions.PolarisConnectionError[source]¶
Bases:
PolarisErrorA
polarisconnection is misconfigured; detected locally before any network call.
- exception airflow.providers.apache.polaris.exceptions.PolarisInvalidArgumentError[source]¶
Bases:
PolarisError,ValueErrorAn argument is invalid, e.g. a malformed namespace or policy content that is not JSON.
- exception airflow.providers.apache.polaris.exceptions.PolarisRequestError[source]¶
Bases:
PolarisErrorA request to Polaris did not complete (connection refused, timeout, broken connection).
- exception airflow.providers.apache.polaris.exceptions.PolarisAuthenticationError(message, *, retryable=False)[source]¶
Bases:
PolarisErrorGetting a token failed, or Polaris rejected the token, the realm or the principal’s roles.
- Parameters:
- exception airflow.providers.apache.polaris.exceptions.PolarisApiError(status, message, error_type=None)[source]¶
Bases:
PolarisErrorA Polaris API call failed for a reason other than authentication.
- Parameters:
- exception airflow.providers.apache.polaris.exceptions.PolarisForbiddenError(status, message, error_type=None)[source]¶
Bases:
PolarisApiErrorHTTP 403: authenticated, but the principal’s active roles lack a required privilege.
- exception airflow.providers.apache.polaris.exceptions.PolarisNotFoundError(status, message, error_type=None)[source]¶
Bases:
PolarisApiErrorHTTP 404: the catalog, principal, role, namespace, table or policy does not exist.
- exception airflow.providers.apache.polaris.exceptions.PolarisConflictError(status, message, error_type=None)[source]¶
Bases:
PolarisApiErrorHTTP 409: the request conflicts with the entity’s current state.
The entity may already exist (
already_exists), the update may be based on a version that is no longer current (stale_version), or the state may forbid it, for example a namespace that is not empty. Only stale versions and other concurrent changes are retryable (seePERMANENT_CONFLICT_TYPES).