Create base exception

pull/8/head
Nicolas Jouanin 2015-06-12 22:49:58 +02:00
rodzic 6b18ef501b
commit 6aa0029495
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -2,16 +2,19 @@
# #
# See the file license.txt for copying permission. # See the file license.txt for copying permission.
class BrokerException(BaseException): class HBMQTTException(BaseException):
"""
HBMQTT base exception
"""
pass pass
class MQTTException(BaseException): class MQTTException(HBMQTTException):
""" """
Base class for all errors refering to MQTT specifications Base class for all errors refering to MQTT specifications
""" """
pass pass
class CodecException(BaseException): class CodecException(HBMQTTException):
""" """
Exceptions thrown by packet encode/decode functions Exceptions thrown by packet encode/decode functions
""" """