5 void throw_error_code(sqlite3 *connection)
7 const int errcode = sqlite3_extended_errcode(connection);
8 if (errcode == SQLITE_OK)
return;
9 if (errcode == SQLITE_DONE)
return;
14 throw busy_exception(connection);
17 throw exception(connection);
22 void throw_error_code(
const int errcode,
const std::string& message)
24 if (errcode == SQLITE_OK)
return;
25 if (errcode == SQLITE_DONE)
return;
30 throw busy_exception(message);
33 throw exception(errcode, message);