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:
parent
c2d8451a12
commit
59a2351be9
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue