summaryrefslogtreecommitdiff
path: root/oslo_db/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-08 03:57:48 +0000
committerGerrit Code Review <review@openstack.org>2016-07-08 03:57:48 +0000
commit58d60ca5b2465c96adec36c286328b1b8b8b512f (patch)
treea1aca949f7d9e57b0a248299960e1aff22e2501c /oslo_db/exception.py
parent462296b66ec1dc4ba770a3775c2f17b5d9780a22 (diff)
parente0db469371ca0bea102ec9689d923608df77807a (diff)
downloadoslo-db-58d60ca5b2465c96adec36c286328b1b8b8b512f.tar.gz
Merge "exception: make message mandatory in DbMigrationError and deprecates it"
Diffstat (limited to 'oslo_db/exception.py')
-rw-r--r--oslo_db/exception.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/oslo_db/exception.py b/oslo_db/exception.py
index 9c0c6fb..16dec7f 100644
--- a/oslo_db/exception.py
+++ b/oslo_db/exception.py
@@ -198,6 +198,20 @@ class DbMigrationError(DBError):
super(DbMigrationError, self).__init__(message)
+class DBMigrationError(DbMigrationError):
+
+ """Wrapped migration specific exception.
+
+ Raised when migrations couldn't be completed successfully.
+ """
+ def __init__(self, message):
+ super(DBMigrationError, self).__init__(message)
+
+
+debtcollector.removals.removed_class(DbMigrationError,
+ replacement=DBMigrationError)
+
+
class DBConnectionError(DBError):
"""Wrapped connection specific exception.