1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

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

@ -47,7 +47,7 @@ SQLite format specification:
#define SQLRES(s, r, m) \
if ((s) != (r)) { \
throw FileNotGoodException(std::string(m) + ": " +\
throw DatabaseException(std::string(m) + ": " +\
sqlite3_errmsg(m_database)); \
}
#define SQLOK(s, m) SQLRES(s, SQLITE_OK, m)