Conditions | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | class CircularDependencyError(Exception): |
||
3 | @classmethod |
||
4 | def for_bears(cls, bears): |
||
5 | """ |
||
6 | Creates the CircularDependencyError with a helpful message about the |
||
7 | dependency. |
||
8 | """ |
||
9 | bear_names = [bear.name for bear in bears] |
||
10 | |||
11 | return cls("Circular dependency detected: " + " -> ".join(bear_names)) |
||
12 | |||
46 |