Home
last modified time | relevance | path

Searched refs:codeStr (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_rpc_error.cpp51 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 Djs_tabs_controller.cpp41 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 Djs_xcomponent_controller.cpp49 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 Djs_view_context.cpp386 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 Dcommon_napi.cpp272 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 Djs_rendering_context.cpp335 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 Duse-jsvm-error.md58 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 Duse-jsvm-error.md57 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 Djs_span_string.cpp63 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 Djsi_base_utils.cpp202 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 Dtest_napi.cpp4477 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);