X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fmsgbase.py;fp=osm_nbi%2Fmsgbase.py;h=0000000000000000000000000000000000000000;hp=25e8c8097a3c111de18418f1f39735cef402debc;hb=a8d63635eecb1c8debab5f674931a453ea39e78d;hpb=0ffaa99c277d76ca49fdbe4d4b6b9df4d7484857 diff --git a/osm_nbi/msgbase.py b/osm_nbi/msgbase.py deleted file mode 100644 index 25e8c80..0000000 --- a/osm_nbi/msgbase.py +++ /dev/null @@ -1,47 +0,0 @@ - -import asyncio -from http import HTTPStatus - -__author__ = "Alfonso Tierno " - - -class MsgException(Exception): - """ - Base Exception class for all msgXXXX exceptions - """ - - def __init__(self, message, http_code=HTTPStatus.INTERNAL_SERVER_ERROR): - """ - General exception - :param message: descriptive text - :param http_code: type. It contains ".value" (http error code) and ".name" (http error name - """ - self.http_code = http_code - Exception.__init__(self, "messaging exception " + message) - - -class MsgBase(object): - """ - Base class for all msgXXXX classes - """ - - def __init__(self): - pass - - def connect(self, config): - pass - - def disconnect(self): - pass - - def write(self, topic, key, msg): - pass - - def read(self, topic): - pass - - async def aiowrite(self, topic, key, msg, loop): - pass - - async def aioread(self, topic, loop): - pass