| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 27 | def __init__(self, msg: str, subject: Union[inspect.Parameter, type]): |
||
| 28 | """ |
||
| 29 | Constructor. |
||
| 30 | :param msg: the message of the error. |
||
| 31 | :param subject: a parameter in case of a decorator injection, a type in |
||
| 32 | case of ``inject_here`` was used. |
||
| 33 | """ |
||
| 34 | super(InjectionError, self).__init__(msg) |
||
| 35 | self.subject = subject |
||
| 36 |