Skip to content

Exceptions API

The antflow.exceptions module defines the custom exception hierarchy used by AntFlow.

Overview

All exceptions inherit from the base AntFlowError. This allows you to catch any AntFlow-related error with a single except block.

Exception Reference

AntFlowError

Bases: Exception

Base exception for all antflow errors.

ExecutorShutdownError

Bases: AntFlowError

Raised when attempting to use an executor that has been shut down.

PipelineError

Bases: AntFlowError

Base exception for pipeline-specific errors.

StageValidationError

Bases: PipelineError

Raised when a stage configuration is invalid.

TaskFailedError

TaskFailedError(task_name: str, original_exception: Exception)

Bases: AntFlowError

Wrapper for task failures that preserves the original exception.