diff options
author | Jamie Lennox <jamielennox@redhat.com> | 2014-12-12 11:55:02 +1000 |
---|---|---|
committer | Jamie Lennox <jamielennox@redhat.com> | 2015-05-26 17:05:09 +1000 |
commit | 0ecf9b1ab5177fc42d16b4a57e8522769433b156 (patch) | |
tree | 53641915d36feb4bbd484df1f82f28754b9de323 /keystoneclient/exceptions.py | |
parent | deeab3c164171ecdbc3a57e3fe5120f1454438d3 (diff) | |
download | python-keystoneclient-0ecf9b1ab5177fc42d16b4a57e8522769433b156.tar.gz |
Add get_communication_params interface to plugins
To allow authentication plugins such as using client certificates or
doing kerberos authentication with every request we need a way for the
plugins to manipulate the send parameters.
Change-Id: Ib9e81773ab988ea05869bc27097d2b25e963e59c
Blueprint: generic-plugins
Diffstat (limited to 'keystoneclient/exceptions.py')
-rw-r--r-- | keystoneclient/exceptions.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py index 0150bf5..fb0bd41 100644 --- a/keystoneclient/exceptions.py +++ b/keystoneclient/exceptions.py @@ -97,6 +97,23 @@ class NoMatchingPlugin(ClientException): super(NoMatchingPlugin, self).__init__(msg) +class UnsupportedParameters(ClientException): + """A parameter that was provided or returned is not supported. + + :param list(str) names: Names of the unsupported parameters. + + .. py:attribute:: names + + Names of the unsupported parameters. + """ + + def __init__(self, names): + self.names = names + + m = _('The following parameters were given that are unsupported: %s') + super(UnsupportedParameters, self).__init__(m % ', '.join(self.names)) + + class InvalidResponse(ClientException): """The response from the server is not valid for this request.""" |