kopia lustrzana https://github.com/Yakifo/amqtt
Create base exception
rodzic
6b18ef501b
commit
6aa0029495
|
@ -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
|
||||||
"""
|
"""
|
||||||
|
|
Ładowanie…
Reference in New Issue