Passed
Push — main ( 11dd19...3b41db )
by Yohann
01:11
created

pyscord.exceptions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A InvalidTokenError.__init__() 0 8 1
1
from typing import Optional
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
3
4
class InvalidTokenError(ValueError):
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
5
6
    def __init__(self, hint: Optional[str] = None):
7
        """Exception raised when the authorization token is invalid.
8
9
        :param hint:
10
            Additional information about the exception cause.
11
        """
12
        super(InvalidTokenError, self).__init__(
13
            "The given token is not a valid token." + (str(hint) * bool(hint))
14
        )
15