summaryrefslogtreecommitdiff
path: root/openstackclient/common/exceptions.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2012-05-10 15:47:59 -0500
committerDean Troyer <dtroyer@gmail.com>2012-05-10 15:52:15 -0500
commit712a8c7f9c5c89071f7f3d87a8d4484921581cf6 (patch)
tree956d2609e54436b72e02cda56918d55aae111f46 /openstackclient/common/exceptions.py
parent9d224b3bf811c9c0b41246b7bfe937dd172ed95e (diff)
downloadpython-openstackclient-712a8c7f9c5c89071f7f3d87a8d4484921581cf6.tar.gz
Add API versioning support
* Specific versions supported are managed in XXXXXX.client.py with a mapping from version to client class. This is based on the scheme that is included in novaclient; none of the other client libs have that capability. Change-Id: I930b197f1189e7f52c3b0096e73e0773cf925542
Diffstat (limited to 'openstackclient/common/exceptions.py')
-rw-r--r--openstackclient/common/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/common/exceptions.py b/openstackclient/common/exceptions.py
index 4b4a0fb4..aa070b37 100644
--- a/openstackclient/common/exceptions.py
+++ b/openstackclient/common/exceptions.py
@@ -39,6 +39,12 @@ class EndpointNotFound(Exception):
pass
+class UnsupportedVersion(Exception):
+ """Indicates that the user is trying to use an unsupported
+ version of the API"""
+ pass
+
+
class ClientException(Exception):
"""
The base exception class for all exceptions this library raises.