/ohos5.0/foundation/arkui/napi/sample/native_module_demo/ |
H A D | demo_javascript_class.cpp | 102 napi_throw_type_error(env, nullptr, "type mismatch for parameter 1"); in DemoJavascriptClassAdd() 108 napi_throw_type_error(env, nullptr, "type mismatch for parameter 2"); in DemoJavascriptClassAdd() 142 napi_throw_type_error(env, nullptr, "type mismatch for parameter 1"); in DemoJavascriptClassSub() 148 napi_throw_type_error(env, nullptr, "type mismatch for parameter 2"); in DemoJavascriptClassSub() 182 napi_throw_type_error(env, nullptr, "type mismatch for parameter 1"); in DemoJavascriptClassMul() 188 napi_throw_type_error(env, nullptr, "type mismatch for parameter 2"); in DemoJavascriptClassMul() 222 napi_throw_type_error(env, nullptr, "type mismatch for parameter 1"); in DemoJavascriptClassDiv() 228 napi_throw_type_error(env, nullptr, "type mismatch for parameter 2"); in DemoJavascriptClassDiv()
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-error.md | 25 | napi_throw_error、napi_throw_type_error、napi_throw_range_error | 当在C/C++中出现了错误或异常情况时,可以使用这些函数来抛出Ar… 280 ### napi_throw_type_error subsection 292 napi_throw_type_error(env, nullptr, "napi_throw_type_error throwing an error"); 308 napi_throw_type_error(env, "napi_throw_type_error", "Argument must be a number"); 330 …hilog.error(0x0000, 'testTag', 'Test Node-API napi_throw_type_error errorCode: %{public}s, errorMe… 335 …hilog.error(0x0000, 'testTag', 'Test Node-API napi_throw_type_error errorCode: %{public}s, errorMe…
|
H A D | use-napi-about-arraybuffer.md | 97 napi_throw_type_error(env, nullptr, "Argument must be an ArrayBuffer");
|
H A D | use-napi-about-array.md | 146 napi_throw_type_error(env, nullptr, "Argument must be an array"); 246 napi_throw_type_error(env, nullptr, "Argument should be an object of type array");
|
H A D | napi-data-types-interfaces.md | 431 | napi_throw_type_error | 抛出一个带文本信息的JS TypeError。 |
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-about-error.md | 25 | napi_throw_error, napi_throw_type_error, napi_throw_range_error| Throws an ArkTS error occurred i… 280 ### napi_throw_type_error subsection 282 Use **napi_throw_type_error** to throw an ArkTS **TypeError** object with text information. 292 napi_throw_type_error(env, nullptr, "napi_throw_type_error throwing an error"); 308 napi_throw_type_error(env, "napi_throw_type_error", "Argument must be a number"); 330 …hilog.error(0x0000, 'testTag', 'Test Node-API napi_throw_type_error errorCode: %{public}s, errorMe… 335 …hilog.error(0x0000, 'testTag', 'Test Node-API napi_throw_type_error errorCode: %{public}s, errorMe…
|
H A D | use-napi-about-arraybuffer.md | 97 napi_throw_type_error(env, nullptr, "Argument must be an ArrayBuffer");
|
H A D | use-napi-about-array.md | 146 napi_throw_type_error(env, nullptr, "Argument must be an array"); 246 napi_throw_type_error(env, nullptr, "Argument should be an object of type array");
|
H A D | napi-data-types-interfaces.md | 414 | napi_throw_type_error | Throws a JS type error with text information.|
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/system_storage/src/ |
H A D | napi_system_storage.cpp | 121 napi_throw_type_error(env, nullptr, "Execute callback failed."); in Complete()
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | how-to-use-opengl-to-draw-3d-graphics.md | 524 napi_throw_type_error(env, NULL, "Wrong number of arguments"); 534 napi_throw_type_error(env, NULL, "Wrong arguments");
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-ndk.md | 73 napi_throw_type_error(env, nullptr, "napi_function is expected");
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | napi.md | 37 |FUNC|napi_throw_type_error|抛出一个带文本信息的js `TypeError`。|10| 189 ### napi_throw_type_error subsection
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/ |
H A D | camera_napi_utils.cpp | 197 napi_throw_type_error(env, errorCode.c_str(), ""); in CheckInvalidArgument()
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | develop-Native-modules-using-NAPI-safely-and-efficiently.md | 198 napi_throw_type_error(env, nullptr, "Wrong arguments. 2 numbers expected.");
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-ndk.md | 73 napi_throw_type_error(env, nullptr, "napi_function is expected");
|
/ohos5.0/base/security/huks/interfaces/kits/napi/src/v8/ |
H A D | huks_napi_common.cpp | 498 napi_throw_type_error(env, nullptr, "Parameter type does not match"); in GetHandleValue()
|
/ohos5.0/base/telephony/core_service/frameworks/js/sim/src/ |
H A D | napi_sim.cpp | 188 napi_throw_type_error(env, nullptr, "excute failed"); in NapiAsyncCompleteCallback() 267 napi_throw_type_error(env, nullptr, "excute failed"); in NapiAsyncPermissionCompleteCallback() 281 napi_throw_type_error(env, nullptr, "excute failed"); in NapiAsyncCommomCompleteCallback()
|
/ohos5.0/docs/en/application-dev/performance/ |
H A D | develop-Native-modules-using-NAPI-safely-and-efficiently.md | 198 napi_throw_type_error(env, nullptr, "Wrong arguments. 2 numbers expected.");
|
/ohos5.0/docs/en/application-dev/reference/native-lib/ |
H A D | napi.md | 37 |FUNC|napi_throw_type_error|Throws a JS **TypeError** with text information.|10| 191 ### napi_throw_type_error subsection
|
/ohos5.0/foundation/arkui/napi/native_engine/ |
H A D | native_api.cpp | 2321 NAPI_EXTERN napi_status napi_throw_type_error(napi_env env, const char* code, const char* msg) in napi_throw_type_error() function
|
/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_napi.cpp | 1200 napi_throw_type_error(env, "500", "Type error"); 7066 auto res = napi_throw_type_error(env, nullptr, nullptr);
|