diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-05-06 21:16:56 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-05-06 21:16:56 +0000 |
commit | 8f80678677e2e47bac9ad0ac9d7fc1cb27d34788 (patch) | |
tree | 68bf1f4440198ed94b965a52ac3f4c4dcb37d1f5 | |
parent | 28dc9b38a735a7c7d1c59ff82e39ec8e67965e1d (diff) | |
parent | b8d3788bf00de69da4a57228c8051788e6fc04e8 (diff) | |
download | python-keystoneclient-8f80678677e2e47bac9ad0ac9d7fc1cb27d34788.tar.gz |
Merge "adding notes about dealing with exceptions in the client"
-rw-r--r-- | HACKING | 6 | ||||
-rw-r--r-- | doc/source/using-api.rst | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -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 ============== |