745df7f69e6d1eb5e173559e7d31f3dd5b70a921
2 from http
import HTTPStatus
5 class MsgException(Exception):
7 Base Exception class for all msgXXXX exceptions
10 def __init__(self
, message
, http_code
=HTTPStatus
.INTERNAL_SERVER_ERROR
):
13 :param message: descriptive text
14 :param http_code: <http.HTTPStatus> type. It contains ".value" (http error code) and ".name" (http error name
16 self
.http_code
= http_code
17 Exception.__init
__(self
, message
)
20 class MsgBase(object):
22 Base class for all msgXXXX classes
28 def connect(self
, config
):