Spaces:
Runtime error
Runtime error
| from app.errors import DomainError | |
| class CycleError(DomainError): | |
| def __init__(self, cycle: list[int]): | |
| self.cycle = cycle | |
| super().__init__(f"Cycle detected: {' -> '.join(str(n) for n in cycle)}") | |
| self.name = "CycleError" | |