mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
31 lines
595 B
Python
31 lines
595 B
Python
|
|
||
|
class GatewayError(Exception):
|
||
|
def __init__(self, reason):
|
||
|
self.reason = reason
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.reason
|
||
|
|
||
|
|
||
|
class GatewayConnectionError(Exception):
|
||
|
def __init__(self, reason):
|
||
|
self.reason = reason
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.reason
|
||
|
|
||
|
|
||
|
class DecodeError(Exception):
|
||
|
def __init__(self, reason):
|
||
|
self.reason = reason
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.reason
|
||
|
|
||
|
|
||
|
class InvalidResponseError(Exception):
|
||
|
def __init__(self, reason):
|
||
|
self.reason = reason
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.reason
|