| 1392 | |
| 1393 | |
| 1394 | class SameLocationError(Exception): |
| 1395 | def __init__(self, edge): |
| 1396 | self.message = ( |
| 1397 | "Attempted to add edge between `{}` and `{}` but they " |
| 1398 | + "share the same location." |
| 1399 | ).format(edge.node1.name, edge.node2.name) |
| 1400 | super().__init__(self.message) |