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

Method ThrowDataConversionError

src/util/data-converter.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2public:
3
4 void ThrowDataConversionError(Napi::Env env, sqlite3_context* invocation, bool isBigInt) {
5 if (isBigInt) {
6 ThrowRangeError(env, (GetDataErrorPrefix() + " a bigint that was too big").c_str());
7 } else {
8 ThrowTypeError(env, (GetDataErrorPrefix() + " an invalid value").c_str());
9 }
10 PropagateJSError(invocation);
11 }
12
13protected:
14

Callers 1

ResultValueFromJSFunction · 0.80

Calls 2

ThrowRangeErrorFunction · 0.85
ThrowTypeErrorFunction · 0.85

Tested by

no test coverage detected