Searched refs:jsErrorCode (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/base/telephony/core_service/frameworks/js/napi/ |
H A D | napi_util.cpp | 434 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 D | napi_util.h | 67 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 D | napi_work.cpp | 139 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 D | napi_preferences_error.cpp | 32 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 D | napi_rdb_error.cpp | 60 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 D | js_error_utils.cpp | 35 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 D | js_error_utils.cpp | 41 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 D | js_systemtime.cpp | 95 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()
|