From 6aa0029495d4a0eee56ff3103a0f4625babd41bb Mon Sep 17 00:00:00 2001 From: Nicolas Jouanin Date: Fri, 12 Jun 2015 22:49:58 +0200 Subject: [PATCH] Create base exception --- hbmqtt/errors.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hbmqtt/errors.py b/hbmqtt/errors.py index a5f9150..2738834 100644 --- a/hbmqtt/errors.py +++ b/hbmqtt/errors.py @@ -2,16 +2,19 @@ # # See the file license.txt for copying permission. -class BrokerException(BaseException): +class HBMQTTException(BaseException): + """ + HBMQTT base exception + """ pass -class MQTTException(BaseException): +class MQTTException(HBMQTTException): """ Base class for all errors refering to MQTT specifications """ pass -class CodecException(BaseException): +class CodecException(HBMQTTException): """ Exceptions thrown by packet encode/decode functions """