Conditions | 1 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from typing import Optional |
||
24 | def __init__(self, hint: Optional[str] = None): |
||
25 | """ |
||
26 | Exception raised when the authorization token is invalid. |
||
27 | |||
28 | :param hint: |
||
29 | Additional information about the exception cause. |
||
30 | """ |
||
31 | super(InvalidTokenError, self).__init__( |
||
32 | "The given token is not a valid token." + (str(hint) * bool(hint)) |
||
33 | ) |
||
34 |