forked from GearPlug/pipedrive-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
52 lines (28 loc) · 742 Bytes
/
exceptions.py
File metadata and controls
52 lines (28 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class BaseError(Exception):
def __init__(self, message, response, *args, **kwargs):
super().__init__(message, *args, **kwargs)
self.response = response
class BadRequestError(BaseError):
pass
class UnauthorizedError(BaseError):
pass
class ForbiddenError(BaseError):
pass
class NotFoundError(BaseError):
pass
class GoneError(BaseError):
pass
class UnsupportedMediaTypeError(BaseError):
pass
class UnprocessableEntityError(BaseError):
pass
class TooManyRequestsError(BaseError):
pass
class InternalServerError(BaseError):
pass
class NotImplementedError(BaseError):
pass
class ServiceUnavailableError(BaseError):
pass
class UnknownError(BaseError):
pass