diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-02-04 16:32:06 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-02-07 15:25:28 -0500 |
| commit | 307b2df090a25258f3d2591a7b0c3bcc93ca5496 (patch) | |
| tree | 258430c5d75f869a853f3460eb4ac82bc0c5abf4 /openstack | |
| parent | 076e9e5be20a104e8d8882235f188f98a38dea89 (diff) | |
| download | oslo-307b2df090a25258f3d2591a7b0c3bcc93ca5496.tar.gz oslo-307b2df090a25258f3d2591a7b0c3bcc93ca5496.tar.xz oslo-307b2df090a25258f3d2591a7b0c3bcc93ca5496.zip | |
Add missing DBDuplicateEntry
The session.py part of nova's 8835866 was imported, but not the newly
added exception.
Change-Id: I0d79a8536f0c8f14cb062dc61c5fce100b63fd64
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/db/common.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openstack/common/db/common.py b/openstack/common/db/common.py index 8f6968f..65f67bc 100644 --- a/openstack/common/db/common.py +++ b/openstack/common/db/common.py @@ -42,3 +42,10 @@ class DBError(Exception): def __init__(self, inner_exception=None): self.inner_exception = inner_exception super(DBError, self).__init__(str(inner_exception)) + + +class DBDuplicateEntry(DBError): + """Wraps an implementation specific exception.""" + def __init__(self, columns=[], inner_exception=None): + self.columns = columns + super(DBDuplicateEntry, self).__init__(inner_exception) |
