summaryrefslogtreecommitdiffstats
path: root/keystone/exception.py
diff options
context:
space:
mode:
authorBrian Waldon <bcwaldon@gmail.com>2012-02-09 09:53:03 -0800
committerBrian Waldon <bcwaldon@gmail.com>2012-02-10 10:20:16 -0800
commit2c18314e7cb7e5b7e5b6237f0793ec82739468f1 (patch)
tree4d919df6dad89d35c6efdd38e43588ad38cd284f /keystone/exception.py
parent1951c87de39f8dde704632512db92b22f967bf08 (diff)
downloadkeystone-2c18314e7cb7e5b7e5b6237f0793ec82739468f1.tar.gz
keystone-2c18314e7cb7e5b7e5b6237f0793ec82739468f1.tar.xz
keystone-2c18314e7cb7e5b7e5b6237f0793ec82739468f1.zip
Add TokenNotFound exception
* raise TokenNotFound from token backends on get/delete when token doesn't exist Change-Id: Ic9aba7911088c30c20fe62501a05d75232f2d8b9
Diffstat (limited to 'keystone/exception.py')
-rw-r--r--keystone/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/keystone/exception.py b/keystone/exception.py
index cefc2604..c2f32afa 100644
--- a/keystone/exception.py
+++ b/keystone/exception.py
@@ -52,3 +52,7 @@ class NotFound(Error):
"""Could not find: %(target)s"""
code = 404
title = 'Not Found'
+
+
+class TokenNotFound(NotFound):
+ """Could not find token: %(token_id)s"""