diff options
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..a81355e 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 OpenstackException(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(OpenstackException): message = "Invalid content type %(content_type)s" |
