Locked History Attachments

ChangeRequests/2633

Summary of bug description

DataStorage (and subclasses) still throws a number of integers instead of exceptions objects derived from std::exceptions.

There are a couple of useful subclasses in STL such as std::logic_error, std::invalid_argument, etc. Such classes can provide the programmer with meaningful error messages.

Cause of the bug

Throwing integers allowed the original author to type/implement faster. No review later.

Proposed solution

All instances of "throw \d" should be found and replaced by meaningful exception objects.

Affected classes

DataStorage and all its subclasses.

How will the bugfix get tested?

The unit test for DataStorage will be adapted.