diff options
| author | Sean Dague <sdague@linux.vnet.ibm.com> | 2012-06-13 10:56:39 -0400 |
|---|---|---|
| committer | Sean Dague <sdague@linux.vnet.ibm.com> | 2012-06-18 09:14:07 -0400 |
| commit | adc66644c4d1a4c6e5cd6a26394cf8b48620d99e (patch) | |
| tree | 766f7e24d47524ff70e3a07cee805b453a4ac0bf /nova/exception.py | |
| parent | fb9abcc83935b01746aeba0db4c431fe72b921fc (diff) | |
added deprecated.warn helper method
provide a convenience method for indicating in code that a config
option the operateor will have to deal with exists in their environment.
Change-Id: I17b0c120d54b1db75c6bb29d107e4a15a5202e76
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 2c43d36f4..df21f0273 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -175,6 +175,10 @@ class DBError(NovaException): super(DBError, self).__init__(str(inner_exception)) +class DeprecatedConfig(NovaException): + message = _("Fatal call to deprecated config %(msg)") + + class DecryptionFailure(NovaException): message = _("Failed to decrypt text") |
