summaryrefslogtreecommitdiff
path: root/keystoneclient/exceptions.py
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@redhat.com>2013-09-23 11:50:57 +1000
committerJamie Lennox <jamielennox@redhat.com>2013-12-03 12:00:03 +1000
commitfd0a176a49b5ead812567018a00fc3db4b7f531a (patch)
tree491f28c357caf9f9342adda6d5e30aeaf2274769 /keystoneclient/exceptions.py
parent2477c334a25ae93638a63b889fc06a0b56a58641 (diff)
downloadpython-keystoneclient-fd0a176a49b5ead812567018a00fc3db4b7f531a.tar.gz
Discover supported APIs
Allow discovery of the API versions a server supports and create an appropriate client based on this. Implements: blueprint api-version-discovery Change-Id: I63e6759889066a784dc47e35152c82e1ead7951d
Diffstat (limited to 'keystoneclient/exceptions.py')
-rw-r--r--keystoneclient/exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py
index df20ceb..5254c22 100644
--- a/keystoneclient/exceptions.py
+++ b/keystoneclient/exceptions.py
@@ -41,3 +41,11 @@ class SSLError(ConnectionError):
class Timeout(ClientException):
"""The request timed out."""
+
+
+class DiscoveryFailure(ClientException):
+ """Discovery of client versions failed."""
+
+
+class VersionNotAvailable(DiscoveryFailure):
+ """Discovery failed as the version you requested is not available."""