Coverage for src / graphable / errors.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-16 21:32 +0000
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-16 21:32 +0000
1from typing import Any
4class GraphCycleError(Exception):
5 """
6 Exception raised when a cycle is detected in the graph.
7 """
9 def __init__(self, message: str, cycle: list[Any] | None = None):
10 super().__init__(message)
11 self.cycle = cycle
14class GraphConsistencyError(Exception):
15 """
16 Exception raised when the bi-directional relationships in the graph are inconsistent.
17 """
19 pass