Handle information about database corruption 22/36222/4
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Tue, 3 Mar 2015 11:35:48 +0000 (12:35 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 5 Mar 2015 10:12:23 +0000 (11:12 +0100)
commitafb5c6f014f2d5b8250b0d0b65377eb8a3fca67c
tree5d7b2a24ff5de44fef9973cb3d99bafc29baf4c0
parentd760937d27e7c88fd61796465544810b0bdfb799
Handle information about database corruption

DatabaseCorruptedException will be thrown to inform about database
corruption. This may be handled directly (OfflineLogic) or through
responses returned from service logic (OnlineLogic).

In both cases proper error code should be returned:
CYNARA_API_DATABASE_CORRUPTED (introduced in this patch).

Change-Id: Idbafcf241c6689dadd3c5a7f25adc4629ea7cffd
src/admin/logic/OfflineLogic.cpp
src/admin/logic/OnlineLogic.cpp
src/common/error/api.cpp
src/common/exceptions/DatabaseCorruptedException.h [new file with mode: 0644]
src/include/cynara-error.h