Airflow Summit 2026 is coming August 31 - September 2 in Austin, TX. Register now to secure your spot!

airflow.providers.anthropic.exceptions

Exceptions

AnthropicError

Base class for all Anthropic provider errors.

AnthropicBatchJobError

Raised when an Anthropic Message Batch fails or finishes with failed requests.

AnthropicBatchTimeout

Raised when an Anthropic Message Batch does not reach a terminal status in time.

AnthropicTriggerEventError

Raised when a deferred task resumes with a missing or malformed trigger event.

AnthropicAgentSessionError

Raised when a Managed Agents session terminates or fails.

AnthropicSessionBudgetExceeded

Raised when a Managed Agents session stops against its configured budget.

AnthropicAgentSessionTimeout

Raised when a Managed Agents session does not reach a terminal status in time.

Module Contents

exception airflow.providers.anthropic.exceptions.AnthropicError[source]

Bases: Exception

Base class for all Anthropic provider errors.

exception airflow.providers.anthropic.exceptions.AnthropicBatchJobError[source]

Bases: AnthropicError

Raised when an Anthropic Message Batch fails or finishes with failed requests.

exception airflow.providers.anthropic.exceptions.AnthropicBatchTimeout[source]

Bases: AnthropicError

Raised when an Anthropic Message Batch does not reach a terminal status in time.

exception airflow.providers.anthropic.exceptions.AnthropicTriggerEventError[source]

Bases: AnthropicError

Raised when a deferred task resumes with a missing or malformed trigger event.

exception airflow.providers.anthropic.exceptions.AnthropicAgentSessionError[source]

Bases: AnthropicError

Raised when a Managed Agents session terminates or fails.

exception airflow.providers.anthropic.exceptions.AnthropicSessionBudgetExceeded[source]

Bases: AnthropicAgentSessionError

Raised when a Managed Agents session stops against its configured budget.

A subclass of AnthropicAgentSessionError so existing handlers keep working, but it can be caught on its own: a budget stop is a spend decision, not a fault, and usually wants different handling (alert, raise the ceiling, route to review) than a failed run.

exception airflow.providers.anthropic.exceptions.AnthropicAgentSessionTimeout[source]

Bases: AnthropicError

Raised when a Managed Agents session does not reach a terminal status in time.

Was this entry helpful?