Merge "Improve error code for invalid secret creation with KMIP"

This commit is contained in:
Jenkins 2016-03-10 19:01:19 +00:00 committed by Gerrit Code Review
commit 29bb6224dc

View File

@ -64,9 +64,16 @@ class SecretStorePluginNotFound(exception.BarbicanHTTPException):
super(SecretStorePluginNotFound, self).__init__(message)
class SecretStoreSupportedPluginNotFound(exception.BarbicanException):
class SecretStoreSupportedPluginNotFound(exception.BarbicanHTTPException):
"""Raised if no plugins are found that support the requested operation."""
message = u._("Secret store plugin not found for requested operation.")
client_message = u._("Secret store supported plugin not found.")
status_code = 400
def __init__(self, plugin_name=None):
message = u._("Secret store plugin not found for requested operation.")
super(SecretStoreSupportedPluginNotFound, self).__init__(
message)
class SecretContentTypeNotSupportedException(exception.BarbicanHTTPException):