From 0789e762583f3b306aa50c8c74c48256e731eb6c Mon Sep 17 00:00:00 2001 From: Rajaram Mallya Date: Thu, 25 Aug 2011 10:58:45 +0530 Subject: Rajaram/Vinkesh | Removed references to Glance in code --- openstack/common/exception.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'openstack/common/exception.py') diff --git a/openstack/common/exception.py b/openstack/common/exception.py index ed6b039..cd382d6 100644 --- a/openstack/common/exception.py +++ b/openstack/common/exception.py @@ -20,8 +20,6 @@ Exceptions common to OpenStack projects """ import logging -import sys -import traceback class ProcessExecutionError(IOError): @@ -119,9 +117,9 @@ def wrap_exception(f): return _wrap -class GlanceException(Exception): +class AppBaseException(Exception): """ - Base Glance Exception + Base Exception To correctly use this class, inherit from it and define a 'message' property. That message will get printf'd @@ -141,5 +139,5 @@ class GlanceException(Exception): return self._error_string -class InvalidContentType(GlanceException): +class InvalidContentType(AppBaseException): message = "Invalid content type %(content_type)s" -- cgit From 0ec0a05aafbeec0b02da7e08ee8de69b459495df Mon Sep 17 00:00:00 2001 From: Rajaram Mallya Date: Wed, 31 Aug 2011 08:29:34 +0530 Subject: Rajaram|renamed AppBaseException to OpenstackException and app_config_dir_name to config_dir as per jaypipes' feedback --- openstack/common/exception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openstack/common/exception.py') diff --git a/openstack/common/exception.py b/openstack/common/exception.py index cd382d6..a81355e 100644 --- a/openstack/common/exception.py +++ b/openstack/common/exception.py @@ -117,7 +117,7 @@ def wrap_exception(f): return _wrap -class AppBaseException(Exception): +class OpenstackException(Exception): """ Base Exception @@ -139,5 +139,5 @@ class AppBaseException(Exception): return self._error_string -class InvalidContentType(AppBaseException): +class InvalidContentType(OpenstackException): message = "Invalid content type %(content_type)s" -- cgit