MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / ThrowDatabaseError

Method ThrowDatabaseError

src/objects/database.cpp:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Database::ThrowDatabaseError(Napi::Env env) {
50 if (was_js_error) was_js_error = false;
51 else ThrowSqliteError(env, addon, db_handle);
52}
53
54void Database::ThrowSqliteError(Napi::Env env, Addon* addon, sqlite3* db_handle) {
55 assert(db_handle != NULL);

Callers 2

NODE_METHODFunction · 0.80
NODE_METHODFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected