Source code for dags.tree.exceptions

"""Custom exceptions for the dags library."""

from __future__ import annotations

from dags.exceptions import ValidationError


[docs] class TrailingUnderscoreError(ValidationError): """Raised when path elements have trailing underscores."""
[docs] class RepeatedTopLevelElementError(ValidationError): """Raised when top-level elements are repeated in paths."""