Add credential encryption exception

If something goes wrong when we encrypt or decrypt a credential, we
should throw a useful error message. We will use this as we implement
encryption for credentials at rest.

bp credential-encryption

Change-Id: I21684de984da05a0728f8875ff00a135fc1b834a
This commit is contained in:
Werner Mendizabal 2016-08-11 19:18:09 +00:00 committed by Steve Martinelli
parent c2d8451a12
commit 59a2351be9
1 changed files with 5 additions and 0 deletions

View File

@ -578,3 +578,8 @@ class TokenlessAuthConfigError(ValidationError):
class UnsupportedDriverVersion(UnexpectedError):
debug_message_format = _('%(driver)s is not supported driver version')
class CredentialEncryptionError(Exception):
message_format = _("An unexpected error prevented the server "
"from accessing encrypted credentials.")