Merge "Add proper support for deprecation messages"

This commit is contained in:
Jenkins
2012-08-16 01:23:36 +00:00
committed by Gerrit Code Review
4 changed files with 114 additions and 6 deletions

View File

@@ -123,6 +123,10 @@ class CinderException(Exception):
super(CinderException, self).__init__(message)
class DeprecatedConfig(CinderException):
message = _("Fatal call to deprecated config") + " %(msg)s"
class DecryptionFailure(CinderException):
message = _("Failed to decrypt text")