diff options
| author | Rajaram Mallya <rajarammallya@gmail.com> | 2011-08-25 10:58:45 +0530 |
|---|---|---|
| committer | Rajaram Mallya <rajarammallya@gmail.com> | 2011-08-25 10:58:45 +0530 |
| commit | 0789e762583f3b306aa50c8c74c48256e731eb6c (patch) | |
| tree | 787f18347922471c028b2b529f88ab14c5654be5 /openstack/common/exception.py | |
| parent | 77b761d6463fcec383c12bf8ee0df1ae1410c464 (diff) | |
| download | oslo-0789e762583f3b306aa50c8c74c48256e731eb6c.tar.gz oslo-0789e762583f3b306aa50c8c74c48256e731eb6c.tar.xz oslo-0789e762583f3b306aa50c8c74c48256e731eb6c.zip | |
Rajaram/Vinkesh | Removed references to Glance in code
Diffstat (limited to 'openstack/common/exception.py')
| -rw-r--r-- | openstack/common/exception.py | 8 |
1 files changed, 3 insertions, 5 deletions
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" |
