From 2c18314e7cb7e5b7e5b6237f0793ec82739468f1 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Thu, 9 Feb 2012 09:53:03 -0800 Subject: Add TokenNotFound exception * raise TokenNotFound from token backends on get/delete when token doesn't exist Change-Id: Ic9aba7911088c30c20fe62501a05d75232f2d8b9 --- keystone/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'keystone/exception.py') 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""" -- cgit