Implement DatabaseException for databases

This commit is contained in:
nerzhul
2016-05-17 09:59:02 +02:00
parent 8b940c005f
commit 8ba6d9f227
4 changed files with 17 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define ENSURE_STATUS_OK(s) \
if (!(s).ok()) { \
throw FileNotGoodException(std::string("LevelDB error: ") + \
throw DatabaseException(std::string("LevelDB error: ") + \
(s).ToString()); \
}