Source code for dags.exceptions
"""Custom exceptions for the dags library."""
from __future__ import annotations
[docs]
class DagsError(Exception):
"""Base exception for all dags-specific errors."""
[docs]
class AnnotationMismatchError(DagsError):
"""Raised when there is a mismatch between annotations."""
class NonStringAnnotationError(DagsError):
"""Raised when a non-string annotation is encountered."""
[docs]
class MissingFunctionsError(DagsError):
"""Raised when required functions are missing from the DAG."""
[docs]
class CyclicDependencyError(DagsError):
"""Raised when the DAG contains a cycle."""
[docs]
class InvalidFunctionArgumentsError(DagsError):
"""Raised when there's an issue with function signatures or arguments."""
[docs]
class ValidationError(DagsError):
"""Base exception for validation errors."""