airflow.providers.databricks.exceptions

Exceptions used by Databricks Provider.

Exceptions

DatabricksSqlExecutionError

Raised when there is an error in sql execution.

DatabricksSqlExecutionTimeout

Raised when a sql execution times out.

DatabricksOperatorPayloadError

Raised when a Databricks operator payload is invalid.

DatabricksWarehouseError

Raised when a SQL warehouse fails to reach or times out waiting for a target state.

DatabricksAgentInvocationError

Raised when an agent invocation fails or cannot be completed.

DatabricksAgentInvocationTimeout

Raised when waiting for an agent invocation times out.

DatabricksApiError

Raised when a Databricks REST API call returns an error response.

DatabricksUnityMCPError

Raised when a call to a Unity Gateway MCP Service fails.

DatabricksUnityMCPAccessDeniedError

Raised when the gateway will not let the caller invoke the service.

DatabricksUnityMCPThrottledError

Raised when the gateway rate-limits the caller.

DatabricksUnityMCPTransportError

Raised when the gateway cannot be reached or the connection drops.

Module Contents

exception airflow.providers.databricks.exceptions.DatabricksSqlExecutionError[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raised when there is an error in sql execution.

exception airflow.providers.databricks.exceptions.DatabricksSqlExecutionTimeout[source]

Bases: DatabricksSqlExecutionError

Raised when a sql execution times out.

exception airflow.providers.databricks.exceptions.DatabricksOperatorPayloadError[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raised when a Databricks operator payload is invalid.

exception airflow.providers.databricks.exceptions.DatabricksWarehouseError[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raised when a SQL warehouse fails to reach or times out waiting for a target state.

exception airflow.providers.databricks.exceptions.DatabricksAgentInvocationError[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raised when an agent invocation fails or cannot be completed.

exception airflow.providers.databricks.exceptions.DatabricksAgentInvocationTimeout[source]

Bases: DatabricksAgentInvocationError

Raised when waiting for an agent invocation times out.

exception airflow.providers.databricks.exceptions.DatabricksApiError(message, *, http_status_code=None, error_code=None)[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raised when a Databricks REST API call returns an error response.

http_status_code = None[source]
error_code = None[source]
exception airflow.providers.databricks.exceptions.DatabricksUnityMCPError(message, *, http_status_code=None, error_code=None)[source]

Bases: DatabricksApiError

Raised when a call to a Unity Gateway MCP Service fails.

exception airflow.providers.databricks.exceptions.DatabricksUnityMCPAccessDeniedError(message, *, http_status_code=None, error_code=None)[source]

Bases: DatabricksUnityMCPError

Raised when the gateway will not let the caller invoke the service.

The service may not exist, the caller may lack a privilege on it, or its credentials may be invalid.

exception airflow.providers.databricks.exceptions.DatabricksUnityMCPThrottledError(message, *, http_status_code=None, retry_after=None)[source]

Bases: DatabricksUnityMCPError

Raised when the gateway rate-limits the caller.

retry_after = None[source]
exception airflow.providers.databricks.exceptions.DatabricksUnityMCPTransportError(message, *, http_status_code=None, error_code=None)[source]

Bases: DatabricksUnityMCPError

Raised when the gateway cannot be reached or the connection drops.

When this interrupts a tool call, the tool may or may not have run, so the call is not retried automatically.

Was this entry helpful?