diff options
author | Jamie Lennox <jamielennox@gmail.com> | 2016-05-23 10:20:43 +1000 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2016-06-10 18:21:56 +0000 |
commit | f8c150a9cc9b407b2df87244daf3342177260e90 (patch) | |
tree | 7c01f7866e00de535b2da5acb1c9450d9b23a819 /keystonemiddleware/exceptions.py | |
parent | 2ab0f98a9f2643f6afb842b6f0c1bc6a56df6507 (diff) | |
download | keystonemiddleware-f8c150a9cc9b407b2df87244daf3342177260e90.tar.gz |
Create a Config object
The _conf_get ugliness in auth_token middleware has been around for a
long time now to handle the abstraction from different oslo.config
options and the paste overrides. This logic is now also being needed in
other middlewares. Extract this into a common config object that has a
better interface and is easier to work with.
Change-Id: I8b8a1427bc527e43bb1baec25a881d93df3f93cc
Diffstat (limited to 'keystonemiddleware/exceptions.py')
-rw-r--r-- | keystonemiddleware/exceptions.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keystonemiddleware/exceptions.py b/keystonemiddleware/exceptions.py new file mode 100644 index 0000000..8a476e9 --- /dev/null +++ b/keystonemiddleware/exceptions.py @@ -0,0 +1,19 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + +class KeystoneMiddlewareException(Exception): + pass + + +class ConfigurationError(KeystoneMiddlewareException): + pass |