Fix deduplication AAI resource issues
[vfc/nfvo/lcm.git] / lcm / pub / exceptions.py
index 6dd5dcb..9b71f2b 100644 (file)
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+import logging
 
+logger = logging.getLogger(__name__)
 
-class NSLCMException(Exception):
+
+class BaseException(Exception):
+    def __init__(self, message):
+        super(BaseException, self).__init__(message)
+        logger.error(self.args[0])
+
+
+class BadRequestException(BaseException):
+    pass
+
+
+class RequestException(BaseException):
+    pass
+
+
+class NSLCMException(BaseException):
     pass
 
 
-class BadRequestException(Exception):
+class SeeOtherException(BaseException):
     pass