Add constraint error in database logic. 49/65349/6
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 8 Apr 2016 13:23:38 +0000 (15:23 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 14 Apr 2016 14:39:49 +0000 (07:39 -0700)
commit04a23aabac88fd9351d8971f7e14bb4594906953
tree572a176ebafa047ab6f3e24425d474770c68ae35
parent2a6fb295a5937e63a9c9bcccb89acee0db6fe4f1
Add constraint error in database logic.

[Problem] Constraint errors can't be distinguished from othes.
[Solution] Introduce constraint error, update documentation and add fix
exception handling in service_impl.cpp.

[Verification] Run tests

Change-Id: Ie16e02bdf7028fc28df0e4981d77879cb65eb3bf
src/common/include/privilege_db.h
src/common/privilege_db.cpp
src/common/service_impl.cpp
src/dpl/db/include/dpl/db/sql_connection.h
src/dpl/db/src/sql_connection.cpp