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

Function ThrowError

src/util/helpers.cpp:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76Napi::Value ThrowError(Napi::Env env, const char* message) {
77 Napi::Error::New(env, message).ThrowAsJavaScriptException();
78 return env.Undefined();
79}
80Napi::Value ThrowTypeError(Napi::Env env, const char* message) {
81 Napi::TypeError::New(env, message).ThrowAsJavaScriptException();
82 return env.Undefined();

Callers 2

DeserializeMethod · 0.85
NODE_METHODFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected