summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-05-06 21:16:56 +0000
committerGerrit Code Review <review@openstack.org>2013-05-06 21:16:56 +0000
commit8f80678677e2e47bac9ad0ac9d7fc1cb27d34788 (patch)
tree68bf1f4440198ed94b965a52ac3f4c4dcb37d1f5
parent28dc9b38a735a7c7d1c59ff82e39ec8e67965e1d (diff)
parentb8d3788bf00de69da4a57228c8051788e6fc04e8 (diff)
downloadpython-keystoneclient-8f80678677e2e47bac9ad0ac9d7fc1cb27d34788.tar.gz
Merge "adding notes about dealing with exceptions in the client"
-rw-r--r--HACKING6
-rw-r--r--doc/source/using-api.rst4
2 files changed, 10 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 8f99086..bac532f 100644
--- a/HACKING
+++ b/HACKING
@@ -75,3 +75,9 @@ Docstrings
:returns: description of the return value
"""
+
+Exceptions
+----------
+
+When dealing with exceptions from underlying libraries, translate those
+exceptions to an instance or subclass of ClientException.
diff --git a/doc/source/using-api.rst b/doc/source/using-api.rst
index b5d630c..fb1aa3a 100644
--- a/doc/source/using-api.rst
+++ b/doc/source/using-api.rst
@@ -29,6 +29,10 @@ You create a valid ``keystoneclient.v2_0.client.Client`` object by passing
authentication data to the constructor. Authentication and examples of common
tasks are provided below.
+You can generally expect that when the client needs to propogate an exception
+it will raise an instance of subclass of
+``keystoneclient.exceptions.ClientException``
+
Authenticating
==============