neutron-lib/releasenotes/notes/add-two-fields-to-duplicated-entry-exception-75b0e07c6e1cc6ae.yaml
Hongbin Lu d47549344e Add two fields to NeutronDbObjectDuplicateEntry
When people were handling duplicated entry error from DB, sometimes
they were trying to find out the specific columns where the value is
duplicated. However, such information are not in the exception object
which is inconvenient. People were even trying to do another query to
find out the duplicated columns. This patch addresses it.

Change-Id: If3ebcdfb5c3a5ddba1e2ebb6cb0ff79239e1ccd3
2018-06-28 20:56:10 +00:00

7 lines
186 B
YAML

---
other:
- |
Add two fields ``columns`` and ``value`` to exception
``NeutronDbObjectDuplicateEntry``. These two fields are populated
from the corresponding db exception.