From 307b2df090a25258f3d2591a7b0c3bcc93ca5496 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 4 Feb 2013 16:32:06 +0000 Subject: Add missing DBDuplicateEntry The session.py part of nova's 8835866 was imported, but not the newly added exception. Change-Id: I0d79a8536f0c8f14cb062dc61c5fce100b63fd64 --- openstack/common/db/common.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openstack') 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) -- cgit