exceptions.py 386 B

1234567891011121314
  1. class LoopDetected(Exception):
  2. """
  3. A loop has been detected while tracing a cable path.
  4. """
  5. pass
  6. class CableTraceSplit(Exception):
  7. """
  8. A cable trace cannot be completed because a RearPort maps to multiple FrontPorts and
  9. we don't know which one to follow.
  10. """
  11. def __init__(self, termination, *args, **kwargs):
  12. self.termination = termination