Home
last modified time | relevance | path

Searched refs:jsErrorCode (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/telephony/core_service/frameworks/js/napi/
H A Dnapi_util.cpp434 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateParameterErrorMessageForJs()
462 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateNetworkSearchErrorMessageForJs()
477 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateVcardErrorMessageForJs()
495 jsErrorCode = JS_ERROR_SIM_CARD_IS_NOT_ACTIVE; in CreateSimErrorMessageForJs()
503 jsErrorCode = JS_ERROR_OPERATOR_CONFIG_ERROR; in CreateSimErrorMessageForJs()
523 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateSmsErrorMessageForJs()
550 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateObserverErrorMessageForJs()
633 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateCommonSystemErrorMessageForJs()
636 jsErrorCode = JS_ERROR_TELEPHONY_NO_SIM_CARD; in CreateCommonSystemErrorMessageForJs()
701 jsErrorCode = JS_ERROR_TELEPHONY_SYSTEM_ERROR; in CreateCommonCallErrorMessageForJs()
[all …]
H A Dnapi_util.h67 static bool CreateParameterErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
69 static bool CreateSimErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
70 static bool CreateSmsErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
71 static bool CreateObserverErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
72 static bool CreateCommonErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
75 static bool CreateCommonSystemErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
76 static bool CreateCallErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
77 static bool CreateCommonCallErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
78 static bool CreateVideoCallErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
80 static bool CreateDataErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode);
[all …]
/ohos5.0/base/time/time_service/framework/js/napi/common/src/
H A Dnapi_work.cpp139 int32_t jsErrorCode = NapiUtils::ConvertErrorCode(ctxt->errCode); in GenerateOutput() local
140 …napi_create_string_utf8(ctxt->env, CODE_TO_MESSAGE.find(jsErrorCode)->second.c_str(), NAPI_AUTO_LE… in GenerateOutput()
143 if (jsErrorCode != JsErrorCode::ERROR) { in GenerateOutput()
144 napi_create_int32(ctxt->env, jsErrorCode, &code); in GenerateOutput()
201 int32_t jsErrorCode = NapiUtils::ConvertErrorCode(ctxt->errCode); in GenerateOutputSync() local
202 …napi_create_string_utf8(ctxt->env, CODE_TO_MESSAGE.find(jsErrorCode)->second.c_str(), NAPI_AUTO_LE… in GenerateOutputSync()
205 if (jsErrorCode != JsErrorCode::ERROR) { in GenerateOutputSync()
207 napi_create_int32(ctxt->env, jsErrorCode, &code); in GenerateOutputSync()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Dnapi_preferences_error.cpp32 auto jsErrorCode = JsErrorCode{ errorCode, -1, "" }; in GetJsErrorCode()
34 jsErrorCode, [](const JsErrorCode &jsErrorCode1, const JsErrorCode &jsErrorCode2) { in GetJsErrorCode()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_error.cpp60 auto jsErrorCode = JsErrorCode{ errorCode, -1, "" }; in GetJsErrorCode()
62 … JS_ERROR_CODE_MSGS + sizeof(JS_ERROR_CODE_MSGS) / sizeof(JS_ERROR_CODE_MSGS[0]), jsErrorCode, in GetJsErrorCode()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
H A Djs_error_utils.cpp35 auto jsErrorCode = JsErrorCode{ errorCode, -1, "" }; in GetJsErrorCode()
37 … JS_ERROR_CODE_MSGS + sizeof(JS_ERROR_CODE_MSGS) / sizeof(JS_ERROR_CODE_MSGS[0]), jsErrorCode, in GetJsErrorCode()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_error_utils.cpp41 auto jsErrorCode = JsErrorCode{ errorCode, -1, "" }; in GetJsErrorCode()
43 … JS_ERROR_CODE_MSGS + sizeof(JS_ERROR_CODE_MSGS) / sizeof(JS_ERROR_CODE_MSGS[0]), jsErrorCode, in GetJsErrorCode()
/ohos5.0/base/time/time_service/framework/js/napi/system_time/src/
H A Djs_systemtime.cpp95 auto jsErrorCode = NapiUtils::ConvertErrorCode(errorCode); in JSSystemTimeSetTime() local
96 asyncContext->message = NapiUtils::GetErrorMessage(jsErrorCode); in JSSystemTimeSetTime()
146 auto jsErrorCode = NapiUtils::ConvertErrorCode(errorCode); in JSSystemTimeSetTimeZone() local
147 asyncContext->message = NapiUtils::GetErrorMessage(jsErrorCode).c_str(); in JSSystemTimeSetTimeZone()