File tree 1 file changed +8
-8
lines changed
pusher_push_notifications
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
MAX_NUMBER_OF_INTERESTS = 100
13
13
14
14
15
- class PusherValidationError (ValueError ):
15
+ class PusherError (Exception ):
16
+ """Base class for all Pusher push notifications errors"""
17
+
18
+
19
+ class PusherValidationError (PusherError , ValueError ):
16
20
"""Error thrown when the Push Notifications publish body is invalid"""
17
- pass
18
21
19
22
20
- class PusherAuthError (ValueError ):
23
+ class PusherAuthError (PusherError , ValueError ):
21
24
"""Error thrown when the Push Notifications secret key is incorrect"""
22
- pass
23
25
24
26
25
- class PusherMissingInstanceError (KeyError ):
27
+ class PusherMissingInstanceError (PusherError , KeyError ):
26
28
"""Error thrown when the instance id used does not exist"""
27
- pass
28
29
29
30
30
- class PusherServerError (Exception ):
31
+ class PusherServerError (PusherError , Exception ):
31
32
"""Error thrown when the Push Notifications service has an internal server
32
33
error
33
34
"""
34
- pass
35
35
36
36
37
37
def handle_http_error (response_body , status_code ):
You can’t perform that action at this time.
0 commit comments