summaryrefslogtreecommitdiff
path: root/cinderclient/exceptions.py
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-08-06 11:59:34 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-08-06 12:11:24 +0200
commitc95e59f51041dc01812d34a6b6e0765dc8c4d034 (patch)
tree25bfdcb952e58fb2b8caa80c17ca616257ba45a1 /cinderclient/exceptions.py
parent55b2161c8f3edbb1cc64048f16c70af0aa039822 (diff)
downloadpython-cinderclient-c95e59f51041dc01812d34a6b6e0765dc8c4d034.tar.gz
convert third-party exception to ConnectionError
fixes bug #1207635 Change-Id: I37da522e812286e72706409b8a6d4652515f720f
Diffstat (limited to 'cinderclient/exceptions.py')
-rw-r--r--cinderclient/exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cinderclient/exceptions.py b/cinderclient/exceptions.py
index 0c52c9c..9d3e0bc 100644
--- a/cinderclient/exceptions.py
+++ b/cinderclient/exceptions.py
@@ -39,6 +39,11 @@ class EndpointNotFound(Exception):
pass
+class ConnectionError(Exception):
+ """Could not open a connection to the API service."""
+ pass
+
+
class AmbiguousEndpoints(Exception):
"""Found more than one matching endpoint in Service Catalog."""
def __init__(self, endpoints=None):