-class FsException(Exception):
+from http import HTTPStatus
+
+__author__ = "Alfonso Tierno <alfonso.tiernosepulveda@telefonica.com>"
+
- def __init__(self, message, http_code=404):
+class FsException(Exception):
+ def __init__(self, message, http_code=HTTPStatus.INTERNAL_SERVER_ERROR):
self.http_code = http_code
- Exception.__init__(self, message)
+ Exception.__init__(self, "storage exception " + message)
class FsBase(object):
-
def __init__(self):
pass