19 lines
357 B
Python
Raw Normal View History

2021-10-25 20:04:55 +01:00
"""
Exceptions for pygatt Module.
"""
class BLEError(Exception):
"""Exception class for pygatt."""
pass
class NotConnectedError(BLEError):
pass
class NotificationTimeout(BLEError):
def __init__(self, msg=None, gatttool_output=None):
super(NotificationTimeout, self).__init__(msg)
self.gatttool_output = gatttool_output