/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_rpc_error.cpp | 51 std::string codeStr = std::to_string(code); in GetError() local 53 NAPI_CALL(env, napi_create_string_utf8(env, codeStr.c_str(), codeStr.size(), &napiCode)); in GetError()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_tabs_controller.cpp | 41 std::string codeStr = std::to_string(errCode); in CreateErrorValue() local 42 napi_create_string_utf8(env, codeStr.c_str(), codeStr.length(), &code); in CreateErrorValue()
|
H A D | js_xcomponent_controller.cpp | 49 std::string codeStr = std::to_string(errCode); in CreateErrorValue() local 50 napi_create_string_utf8(env, codeStr.c_str(), codeStr.length(), &code); in CreateErrorValue()
|
H A D | js_view_context.cpp | 386 std::string codeStr = std::to_string(errCode); in CreateErrorValue() local 387 napi_create_string_utf8(env, codeStr.c_str(), codeStr.length(), &code); in CreateErrorValue()
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/common/ |
H A D | common_napi.cpp | 272 napi_value codeStr = nullptr; in FillErrorArgs() local 273 napi_status status = napi_create_string_utf8(env, "code", NAPI_AUTO_LENGTH, &codeStr); in FillErrorArgs() 274 …CHECK_AND_RETURN_RET_LOG(status == napi_ok && codeStr != nullptr, napi_invalid_arg, "create code s… in FillErrorArgs() 282 status = napi_set_property(env, args, codeStr, errCodeVal); in FillErrorArgs() 316 napi_value codeStr = nullptr; in CreateError() local 317 nstatus = napi_create_string_utf8(env, "code", NAPI_AUTO_LENGTH, &codeStr); in CreateError() 318 if (nstatus != napi_ok || codeStr == nullptr) { in CreateError() 330 nstatus = napi_set_property(env, errVal, codeStr, errCodeVal); in CreateError()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/ |
H A D | js_rendering_context.cpp | 335 std::string codeStr = std::to_string(errCode); in CreateErrorValue() local 336 napi_create_string_utf8(env, codeStr.c_str(), codeStr.length(), &code); in CreateErrorValue()
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-jsvm-error.md | 58 char codeStr[256]; 60 OH_JSVM_GetValueStringUtf8(env, errorCode, codeStr, 256, nullptr); 61 …H_LOG_INFO(LOG_APP, "JSVM error message: %{public}s, error code: %{public}s", messagestr, codeStr);
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-jsvm-error.md | 57 char codeStr[256]; 59 OH_JSVM_GetValueStringUtf8(env, errorCode, codeStr, 256, nullptr); 60 …H_LOG_INFO(LOG_APP, "JSVM error message: %{public}s, error code: %{public}s", messagestr, codeStr);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/ |
H A D | js_span_string.cpp | 63 std::string codeStr = std::to_string(errCode); in CreateErrorValue() local 64 napi_create_string_utf8(env, codeStr.c_str(), codeStr.length(), &code); in CreateErrorValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_base_utils.cpp | 202 std::string codeStr = code->ToString(runtime); in GenerateSummaryBody() local 204 summaryBody.append(codeStr).append("\n"); in GenerateSummaryBody()
|
/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_napi.cpp | 4477 constexpr char codeStr[] = "test code"; variable 4478 napi_status res = napi_create_string_utf8(env, codeStr, NAPI_AUTO_LENGTH, &code); 4506 constexpr char codeStr[] = "test code"; variable 4507 napi_status res = napi_create_string_utf8(env, codeStr, NAPI_AUTO_LENGTH, &code);
|