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

1from typing import Any 

2 

3 

4class GraphCycleError(Exception): 

5 """ 

6 Exception raised when a cycle is detected in the graph. 

7 """ 

8 

9 def __init__(self, message: str, cycle: list[Any] | None = None): 

10 super().__init__(message) 

11 self.cycle = cycle 

12 

13 

14class GraphConsistencyError(Exception): 

15 """ 

16 Exception raised when the bi-directional relationships in the graph are inconsistent. 

17 """ 

18 

19 pass