lib: added new exception (ClearError) for when library cannot erase a database
commit3118966598aaa8d80bc7e34aaa3d7cc1658ef694
authorChris Frey <cdfrey@foursquare.net>
Tue, 10 Jan 2012 06:02:31 +0000 (10 01:02 -0500)
committerChris Frey <cdfrey@foursquare.net>
Tue, 10 Jan 2012 06:02:31 +0000 (10 01:02 -0500)
treecac5afeeb674a10095a365b344104e2012d8c20c
parenta6405160c2dded298b773faf05b50460d81c010d
lib: added new exception (ClearError) for when library cannot erase a database

Sometimes databases are read-only and the error code is specific in this
regard (often an error code 2).  It is helpful to make this explicit with
its own exception, so that Restore code can check for this case and deal
with it alone.
doc/Exceptions
src/error.h
src/m_desktop.cc