We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98bd716 commit 5129c56Copy full SHA for 5129c56
mystbin/errors.py
@@ -30,8 +30,20 @@ class MystbinException(Exception):
30
""" Error when interacting with Mystbin. """
31
32
class APIError(MystbinException):
33
+ """
34
+ Exception relationg to the API of Mystbin.
35
+
36
+ Attributes
37
+ ----------
38
+ status_code: :class:`int`
39
+ The HTTP Status code return from the API.
40
+ message: :class:`str`
41
+ The Message supplied with the HTTP status code from the API.
42
43
44
__slots__ = ("status_code", "message")
- def __init__(self, status_code: int, message: str) -> None:
45
46
+ def __init__(self, status_code: int, message: str):
47
self.status_code = status_code
48
self.message = message
49
0 commit comments