Add timestamp field for Unregistered exception

Fix #61
This commit is contained in:
Sergey Petrov
2018-05-07 19:28:06 +03:00
parent d071ec1864
commit ccfaf75398
2 changed files with 18 additions and 2 deletions
+5
View File
@@ -128,6 +128,11 @@ class MethodNotAllowed(InternalException):
class Unregistered(APNsException):
"""The device token is inactive for the specified topic."""
def __init__(self, timestamp=None):
super().__init__()
self.timestamp = timestamp
class PayloadTooLarge(BadPayloadException):
"""The message payload was too large. The maximum payload size is 4096 bytes."""