Home
last modified time | relevance | path

Searched refs:errMsg (Results 1 – 25 of 84) sorted by relevance

1234

/base/global/resource_management/dfx/hisysevent_adapter/
Dhisysevent_adapter.cpp24 void ReportInitResourceManagerFail(const std::string& bundleName, const std::string& errMsg) in ReportInitResourceManagerFail() argument
29 "ERROR_MSG", errMsg); in ReportInitResourceManagerFail()
32 ret, bundleName.c_str(), errMsg.c_str()); in ReportInitResourceManagerFail()
36 void ReportGetResourceByIdFail(int32_t resId, const std::string& result, const std::string& errMsg) in ReportGetResourceByIdFail() argument
42 "ERROR_MSG", errMsg); in ReportGetResourceByIdFail()
45 ret, resId, result.c_str(), errMsg.c_str()); in ReportGetResourceByIdFail()
49 …esourceByNameFail(const std::string& resName, const std::string& result, const std::string& errMsg) in ReportGetResourceByNameFail() argument
55 "ERROR_MSG", errMsg); in ReportGetResourceByNameFail()
58 ret, resName.c_str(), result.c_str(), errMsg.c_str()); in ReportGetResourceByNameFail()
62 void ReportAddResourcePathFail(const char* resourcePath, const std::string& errMsg) in ReportAddResourcePathFail() argument
[all …]
Dhisysevent_adapter.h24 void ReportInitResourceManagerFail(const std::string& bundleName, const std::string& errMsg);
26 void ReportGetResourceByIdFail(int32_t resId, const std::string& result, const std::string& errMsg);
28 …sourceByNameFail(const std::string& resName, const std::string& result, const std::string& errMsg);
30 void ReportAddResourcePathFail(const char* resourcePath, const std::string& errMsg);
/base/usb/usb_manager/utils/native/include/
Dusb_napi_errors.h39 void ThrowBusinessError(const napi_env &env, int32_t errCode, const std::string &errMsg);
40 napi_value CreateBusinessError(const napi_env &env, int32_t errCode, const std::string &errMsg);
42 #define USB_ASSERT_BASE(env, assertion, errCode, errMsg, retVal) \ argument
45 USB_HILOGE(MODULE_JS_NAPI, #errMsg); \
46 ThrowBusinessError((env), errCode, errMsg); \
52 #define USB_ASSERT(env, assertion, errCode, errMsg) USB_ASSERT_BASE(env, assertion, errCode, errMsg argument
53 #define USB_ASSERT_RETURN_VOID(env, assertion, errCode, errMsg) \ argument
54 USB_ASSERT_BASE(env, assertion, errCode, errMsg, NOTHING)
55 …USB_ASSERT_RETURN_FALSE(env, assertion, errCode, errMsg) USB_ASSERT_BASE(env, assertion, errCode, argument
56 #define USB_ASSERT_RETURN_UNDEF(env, assertion, errCode, errMsg) \ argument
[all …]
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_inputer_manager.cpp57 std::string errMsg = "The number of parameter must be two"; in ParseContextForRegisterInputer() local
58 ACCOUNT_LOGE("%{public}s", errMsg.c_str()); in ParseContextForRegisterInputer()
59 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer()
63 std::string errMsg = "The type of parameter authType must be number"; in ParseContextForRegisterInputer() local
64 ACCOUNT_LOGE("%{public}s", errMsg.c_str()); in ParseContextForRegisterInputer()
65 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer()
71 … std::string errMsg = "The onGetData function should be contained in the inputer, but not found"; in ParseContextForRegisterInputer() local
72 ACCOUNT_LOGE("%{public}s", errMsg.c_str()); in ParseContextForRegisterInputer()
73 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer()
79 std::string errMsg = "The onGetData is not a function"; in ParseContextForRegisterInputer() local
[all …]
Dnapi_account_iam_identity_manager.cpp67 std::string errMsg = "The type of arg 1 must be function"; in ParseContextForOpenSession() local
68 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForOpenSession()
123 std::string errMsg = "The arg number must be at least 2 characters"; in ParseContextForUpdateCredential() local
124 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForUpdateCredential()
128 std::string errMsg = "The type of arg 1 must be valid CredentialInfo"; in ParseContextForUpdateCredential() local
129 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForUpdateCredential()
133 std::string errMsg = "The type of arg 2 must be valid IIdmCallback"; in ParseContextForUpdateCredential() local
134 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForUpdateCredential()
204 std::string errMsg = "The arg number must be at least 1 characters"; in Cancel() local
205 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in Cancel()
[all …]
Dnapi_account_iam_user_auth.cpp74 std::string errMsg = "The arg number must be 2 characters"; in GetAvailableStatus() local
75 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in GetAvailableStatus()
81 std::string errMsg = "The type of arg 1 must be number"; in GetAvailableStatus() local
82 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in GetAvailableStatus()
89 std::string errMsg = "The type of arg 2 must be number"; in GetAvailableStatus() local
90 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in GetAvailableStatus()
120 std::string errMsg = "The arg number must be at least 1 character"; in ParseContextForGetSetProperty() local
121 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForGetSetProperty()
137 std::string errMsg = "Arg 1 must be a valid GetPropertyRequest"; in ParseContextForGetSetProperty() local
138 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForGetSetProperty()
[all …]
Dnapi_account_iam_pin_auth.cpp58 …std::string errMsg = "The arg number must be at least " + std::to_string(ARG_SIZE_ONE) + " charact… in ParseContextForRegisterInputer() local
59 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer()
71 std::string errMsg = "The type of arg 1 must be function or object"; in ParseContextForRegisterInputer() local
72 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer()
/base/account/os_account/dfx/hisysevent_adapter/
Dhisysevent_adapter.cpp29 void ReportServiceStartFail(int32_t errCode, const std::string& errMsg) in ReportServiceStartFail() argument
35 "ERROR_MSG", errMsg); in ReportServiceStartFail()
64 int32_t id, const std::string& operationStr, int32_t errCode, const std::string& errMsg) in ReportOsAccountOperationFail() argument
72 "ERROR_MSG", errMsg); in ReportOsAccountOperationFail()
75 ret, id, operationStr.c_str(), errCode, errMsg.c_str()); in ReportOsAccountOperationFail()
81 (void)errMsg; in ReportOsAccountOperationFail()
86 int32_t userId, const std::string& operationStr, int32_t errCode, const std::string& errMsg) in ReportOhosAccountOperationFail() argument
94 "ERROR_MSG", errMsg); in ReportOhosAccountOperationFail()
97 ret, userId, operationStr.c_str(), errCode, errMsg.c_str()); in ReportOhosAccountOperationFail()
103 (void)errMsg; in ReportOhosAccountOperationFail()
[all …]
Dhisysevent_adapter.h23 void ReportServiceStartFail(int32_t errCode, const std::string& errMsg);
26 int32_t id, const std::string& operationStr, int32_t errCode, const std::string& errMsg);
28 int32_t userId, const std::string& operationStr, int32_t errCode, const std::string& errMsg);
30 int32_t errCode, const std::string& errMsg);
/base/update/updater/services/ui/view/page/
Dview_proxy.h45 std::string errMsg {}; in As()
46 return As<T>(errMsg); in As()
49 T *As(std::string &errMsg) const in As() argument
53 errMsg = errMsg_ + " view is null"; in As()
57 errMsg = errMsg_ + " view's real type not matched"; in As()
58 LOG(ERROR) << errMsg; in As()
64 T *As(std::string &errMsg) const in As() argument
70 errMsg = errMsg_ + " view is null"; in As()
78 errMsg = errMsg_ + " view's real type not matched"; in As()
79 LOG(ERROR) << errMsg; in As()
/base/hiviewdfx/hilog/test/unittest/common/
Dhilogtool_test.cpp174 std::string errMsg = ErrorCode2Str(ERR_LOG_LEVEL_INVALID) + "\n"; variable
175 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
199 std::string errMsg = ErrorCode2Str(ERR_INVALID_DOMAIN_STR) + "\n"; variable
200 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
224 std::string errMsg = ErrorCode2Str(ERR_TAG_STR_TOO_LONG) + "\n"; variable
225 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
255 std::string errMsg = ErrorCode2Str(ERR_INVALID_SIZE_STR) + "\n"; variable
256 EXPECT_EQ(GetCmdResultFromPopen(inValidStrCmd), errMsg);
302 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\n"; variable
303 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
[all …]
/base/location/frameworks/js/napi/source/
Dlocation_napi_errcode.cpp26 std::string errMsg = GetErrorMsgByCode(errCode); in HandleSyncErrCode() local
27 if (errMsg != "") { in HandleSyncErrCode()
28 napi_throw_error(env, std::to_string(errCode).c_str(), errMsg.c_str()); in HandleSyncErrCode()
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account_common.cpp85 std::string errMsg = "The type of arg " + std::to_string(argc) + " must be function"; in ParseOneParaContext() local
86 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseOneParaContext()
102 std::string errMsg = "The type of arg " + std::to_string(argc) + " must be function"; in ParseCallbackAndId() local
103 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId()
109 std::string errMsg = "The type of arg 1 must be number"; in ParseCallbackAndId() local
110 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId()
308 std::string errMsg = "The type of arg " + std::to_string(argc) + " must be function"; in ParseParaSetOAName() local
309 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseParaSetOAName()
316 std::string errMsg = "The type of arg 1 must be number"; in ParseParaSetOAName() local
317 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseParaSetOAName()
[all …]
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_config.cpp48 std::string errMsg = NapiUtil::CreateErrMsg(key, CONFIG_OPTION_MAP.at(key)); in Configure() local
49 NapiUtil::ThrowError(env, NapiError::ERR_PARAM, errMsg, isThrow); in Configure()
53 std::string errMsg = "Invalid max storage quota value."; in Configure() local
54 NapiUtil::ThrowError(env, NapiError::ERR_INVALID_MAX_STORAGE, errMsg, isThrow); in Configure()
/base/usb/usb_manager/utils/native/src/
Dusb_napi_errors.cpp34 napi_value CreateBusinessError(const napi_env &env, int32_t errCode, const std::string &errMsg) in CreateBusinessError() argument
43 std::string cMsg(std::string(commMsg.value()) + errMsg); in CreateBusinessError()
56 void ThrowBusinessError(const napi_env &env, int32_t errCode, const std::string &errMsg) in ThrowBusinessError() argument
59 businessError = CreateBusinessError(env, errCode, errMsg); in ThrowBusinessError()
/base/hiviewdfx/hiview/base/running_status_logger/
Drunning_status_logger.cpp33 char errMsg[BUF_SIZE] = { 0 }; variable
44 strerror_r(errno, errMsg, BUF_SIZE); in Log()
46 errno, errMsg); in Log()
103 strerror_r(errno, errMsg, BUF_SIZE); in GetLogWroteDestFile()
105 errno, errMsg); in GetLogWroteDestFile()
123 strerror_r(errno, errMsg, BUF_SIZE); in GetLogWroteDestFile()
125 errno, errMsg); in GetLogWroteDestFile()
/base/security/access_token/interfaces/kits/common/src/
Dnapi_error.cpp48 std::string errMsg = "Unknown error, errCode + " + std::to_string(errCode) + "."; in GetErrorMessage() local
49 return errMsg; in GetErrorMessage()
52 napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string& errMsg) in GenerateBusinessError() argument
60 NAPI_CALL(env, napi_create_string_utf8(env, errMsg.c_str(), NAPI_AUTO_LENGTH, &msg)); in GenerateBusinessError()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp480 asyncContext->errMsg = "the number of parameters should be at least 1"; in ParseContextWithExInfo()
498 asyncContext->errMsg = "the type of param " + std::to_string(i) + " is incorrect"; in ParseContextWithExInfo()
527 context->errMsg = "the number of parameters should be at least 4"; in ParseContextForAuth()
531 context->errMsg = "the name is not string"; in ParseContextForAuth()
535 context->errMsg = "the owner is not string"; in ParseContextForAuth()
539 context->errMsg = "the authType is not string"; in ParseContextForAuth()
551 context->errMsg = "the type of options is incorrect"; in ParseContextForAuth()
560 context->errMsg = "the type of authCallback is incorrect"; in ParseContextForAuth()
626 asyncContext->errMsg = ErrMsgList[type]; in ParseContextOAuthProperty()
640 …asyncContext->errMsg = "the number of parameter should be at least " + std::to_string(argcSize - 1… in ParseContextForOAuth()
[all …]
/base/update/updateservice/services/firmware/upgrade/executor/src/
Dfirmware_install_executor.cpp73 [=](const bool result, const ErrMsg &errMsg) { in DoInstall()
74 HandleInstallResult(result, errMsg); in DoInstall()
112 void FirmwareInstallExecutor::HandleInstallResult(const bool result, const ErrMsg &errMsg) in HandleInstallResult() argument
128 installCallbackInfo_.errorMessage.errorCode = errMsg.errorCode; in HandleInstallResult()
129 installCallbackInfo_.errorMessage.errorMessage = errMsg.errorMsg; in HandleInstallResult()
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_atmanager.cpp374 std::string errMsg; in ParseInputVerifyPermissionOrGetFlag() local
385 errMsg = GetParamErrorMsg("tokenId", "number"); in ParseInputVerifyPermissionOrGetFlag()
387 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag()
393 errMsg = GetParamErrorMsg("permissionName", "string"); in ParseInputVerifyPermissionOrGetFlag()
395 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag()
591 std::string errMsg = GetParamErrorMsg("tokenID", "number"); in VerifyAccessTokenSync() local
592 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_INVALID, errMsg))); in VerifyAccessTokenSync()
596 std::string errMsg = GetParamErrorMsg("permissionName", "string"); in VerifyAccessTokenSync() local
597 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_INVALID, errMsg))); in VerifyAccessTokenSync()
630 std::string errMsg; in ParseInputGrantOrRevokePermission() local
[all …]
/base/global/i18n/interfaces/js/kits/src/
Derror_util.cpp40 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow() local
41 napi_create_string_latin1(env, errMsg.c_str(), NAPI_AUTO_LENGTH, &message); in NapiThrow()
/base/update/updateservice/services/firmware/upgrade/install/src/
Dfirmware_sys_installer_callback.cpp41 installProgress.errMsg.errorMsg = resultMsg; in OnUpgradeProgress()
46 installProgress.errMsg.errorCode = CAST_INT(updateStatus); in OnUpgradeProgress()
Dfirmware_install.cpp67 ErrMsg errMsg = { errCode, errorMsg }; in CallbackFailedResult() local
68 cb.onFirmwareEvent(false, errMsg); in CallbackFailedResult()
/base/update/updateservice/services/firmware/check/include/
Dfirmware_icheck.h132 std::string errMsg = "Couldn't connect to server"; in ReadDataFromSSL() local
151 errMsg = ""; in ReadDataFromSSL()
154 errMsg = "Couldn't read data"; in ReadDataFromSSL()
158 errMsg = "Couldn't connect to server"; in ReadDataFromSSL()
163 FIRMWARE_LOGI("ReadDataFromSSL errMsg: %s, result: %d", errMsg.c_str(), result); in ReadDataFromSSL()
/base/update/updater/test/unittest/updater_ui_test/view/
Dui_page_manager_unittest.cpp217 std::string errMsg {}; variable
221 GetInstance()[ComInfo {pageId, comId}].As<TextLabelAdapter>(errMsg);
222 ASSERT_EQ(errMsg, "") << errMsg;
227 GetInstance()[ComInfo {pageId, comId}].As<ImgViewAdapter>(errMsg);
228 ASSERT_EQ(errMsg, "") << errMsg;
230 GetInstance()[ComInfo {"", ""}].As(errMsg);
231 EXPECT_EQ(errMsg, " view is null");

1234