MCPcopy Create free account
hub / github.com/NativeScript/android / Throw

Method Throw

test-app/runtime/src/main/cpp/ArrayHelper.cpp:120–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void ArrayHelper::Throw(Isolate* isolate, const std::string& errorMessage) {
121 auto errMsg = ArgConverter::ConvertToV8String(isolate, errorMessage.c_str());
122 auto err = Exception::Error(errMsg);
123 isolate->ThrowException(err);
124}
125
126jobject ArrayHelper::CreateArrayByClassName(const string& typeName, int length) {
127 JEnv env;

Callers

nothing calls this directly

Calls 1

ErrorClass · 0.70

Tested by

no test coverage detected