pypush-plus-plus/exceptions.py
Kasherpete 9a0f55ab18
Fix ignoring gateway parameter (#34)
* Add custom exceptions and fix logging

* Fix "done" message

* Fix gateway stuff

* Fix `P:`

* Fix cscook's `--reg-notify` code
2023-10-23 19:28:36 -04:00

31 lines
No EOL
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