Modify RecordCorruptedException class hierarchy 71/32771/17
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 22 Dec 2014 15:18:41 +0000 (16:18 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 27 Feb 2015 14:53:08 +0000 (15:53 +0100)
commitba47308b144e4321ebce79ecf837a1104b0d1d74
treecf95612461dc181a5998166707319e94c2d0efb8
parent501306b6a09f74a644e620ebcdef42a3cbc3c10b
Modify RecordCorruptedException class hierarchy

So far there was only one type of record Cynara could read from its
database. If any corruption was detected, BucketRecordCorruptedException
was thrown.

Now database will contain information about not only buckets and
policies, but also some metadata for them (in this case - checksums).
Need for exception superclass for handling corrupted records emerged.

Patch modifies exception class hierarchy and adds new exception type:
ChecksumRecordCorruptedException.

Change-Id: I3af6bd20b57e17ec31d766f138595920c7a413bd
src/common/exceptions/BucketRecordCorruptedException.h
src/common/exceptions/ChecksumRecordCorruptedException.h [new file with mode: 0644]
src/common/exceptions/RecordCorruptedException.h [new file with mode: 0644]