summaryrefslogtreecommitdiffstats
path: root/openstack/common/exception.py
diff options
context:
space:
mode:
authorjaypipes <jaypipes@gmail.com>2011-08-30 20:08:40 -0700
committerjaypipes <jaypipes@gmail.com>2011-08-30 20:08:40 -0700
commitdbab61cd6bb070b5fc40a5fdc49b2caf3b20675a (patch)
treec392257a23939c9fd823cb85d65c1dae920502b0 /openstack/common/exception.py
parentf314bc0457781846c116b9cc0ad24ea49891d2d9 (diff)
parent0ec0a05aafbeec0b02da7e08ee8de69b459495df (diff)
downloadoslo-dbab61cd6bb070b5fc40a5fdc49b2caf3b20675a.tar.gz
oslo-dbab61cd6bb070b5fc40a5fdc49b2caf3b20675a.tar.xz
oslo-dbab61cd6bb070b5fc40a5fdc49b2caf3b20675a.zip
Merge pull request #2 from rajarammallya/master
Made openstack.common a module and removed code references to glance
Diffstat (limited to 'openstack/common/exception.py')
-rw-r--r--openstack/common/exception.py8
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"