diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-07-08 03:57:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-07-08 03:57:48 +0000 |
commit | 58d60ca5b2465c96adec36c286328b1b8b8b512f (patch) | |
tree | a1aca949f7d9e57b0a248299960e1aff22e2501c /oslo_db/exception.py | |
parent | 462296b66ec1dc4ba770a3775c2f17b5d9780a22 (diff) | |
parent | e0db469371ca0bea102ec9689d923608df77807a (diff) | |
download | oslo-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.py | 14 |
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. |