projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lightweight exception capturing, logging
[osm/RO.git]
/
lcm
/
osm_common
/
fsbase.py
diff --git
a/lcm/osm_common/fsbase.py
b/lcm/osm_common/fsbase.py
index
85562bd
..
7b6cd0c
100644
(file)
--- a/
lcm/osm_common/fsbase.py
+++ b/
lcm/osm_common/fsbase.py
@@
-1,13
+1,16
@@
-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
self.http_code = http_code
- Exception.__init__(self, message)
+ Exception.__init__(self,
"storage exception " +
message)
class FsBase(object):
class FsBase(object):
-
def __init__(self):
pass
def __init__(self):
pass