Skip to content

radical.asyncflow.errors

DependencyFailure

DependencyFailure(message, failed_dependencies=None, root_cause=None)

Bases: Exception

Exception raised when a workflow component cannot execute due to dependency failures.

This exception provides detailed information about the failed dependencies and maintains the chain of causation for debugging purposes.

Initialize DependencyFailure exception.

Parameters:

Name Type Description Default
message str

Human-readable error message

required
failed_dependencies list

List of failed dependency names

None
root_cause Exception

The original exception that caused the failure

None
Source code in doc_env/lib/python3.13/site-packages/radical/asyncflow/errors.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
def __init__(self, message, failed_dependencies=None, root_cause=None):
    """
    Initialize DependencyFailure exception.

    Args:
        message (str): Human-readable error message
        failed_dependencies (list, optional): List of failed dependency names
        root_cause (Exception, optional): The original exception that caused the failure
    """
    super().__init__(message)
    self.failed_dependencies = failed_dependencies or []
    self.root_cause = root_cause

    # Chain the exception if we have a root cause
    if root_cause:
        self.__cause__ = root_cause