/base/usb/usb_manager/utils/native/include/ |
H A D | usb_napi_errors.h | 42 void ThrowBusinessError(const napi_env &env, int32_t errCode, const std::string &errMsg); 43 napi_value CreateBusinessError(const napi_env &env, int32_t errCode, const std::string &errMsg); 45 #define USB_ASSERT_BASE(env, assertion, errCode, errMsg, retVal) \ 48 USB_HILOGE(MODULE_JS_NAPI, #errMsg); \ 49 ThrowBusinessError((env), errCode, errMsg); \ 55 #define USB_ASSERT(env, assertion, errCode, errMsg) USB_ASSERT_BASE(env, assertion, errCode, errMsg, nullptr) 56 #define USB_ASSERT_RETURN_VOID(env, assertion, errCode, errMsg) \ 57 USB_ASSERT_BASE(env, assertion, errCode, errMsg, NOTHING) 58 #define USB_ASSERT_RETURN_FALSE(env, assertion, errCode, errMsg) USB_ASSERT_BAS [all...] |
/base/global/resource_management/dfx/hisysevent_adapter/ |
H A D | hisysevent_adapter.cpp | 24 void ReportInitResourceManagerFail(const std::string& bundleName, const std::string& errMsg)
in ReportInitResourceManagerFail() argument 29 "ERROR_MSG", errMsg);
in ReportInitResourceManagerFail() 31 RESMGR_HILOGE(RESMGR_TAG, "HiSysEventWrite failed! ret %{public}d, bundleName %{public}s, errMsg %{public}s",
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 "HiSysEventWrite failed! ret %{public}d, resId %{public}d, result %{public}s, errMsg %{public}s.",
in ReportGetResourceByIdFail() 46 ret, resId, result.c_str(), errMsg.c_str());
in ReportGetResourceByIdFail() 50 void ReportGetResourceByNameFail(const std::string& resName, const std::string& result, const std::string& errMsg)
in ReportGetResourceByNameFail() argument 56 "ERROR_MSG", errMsg);
in ReportGetResourceByNameFail() 64 ReportAddResourcePathFail(const char* resourcePath, const std::string& errMsg) ReportAddResourcePathFail() argument [all...] |
H A D | hisysevent_adapter.h | 24 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 void ReportGetResourceByNameFail(const std::string& resName, const std::string& result, const std::string& errMsg);
30 void ReportAddResourcePathFail(const char* resourcePath, const std::string& errMsg);
|
/base/account/os_account/interfaces/kits/napi/account_iam/src/ |
H A D | napi_account_iam_inputer_manager.cpp | 57 std::string errMsg = "Parameter error. The number of parameters should be at least 2";
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 = "Parameter error. The type of \"authType\" must be AuthType";
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 = "Parameter error. The type of \"inputer\" must be IInputer";
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 in ParseContextForRegisterInputer() local 110 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; UnregisterInputer() local 117 std::string errMsg = "Parameter error. The type of \\"authType\\" must be AuthType"; UnregisterInputer() local [all...] |
H A D | napi_account_iam_user_auth.cpp | 75 std::string errMsg = "Parameter error. The number of parameters should be at least 2"; in GetAvailableStatus() local 76 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in GetAvailableStatus() 82 std::string errMsg = "Parameter error. The type of \"authType\" must be number"; in GetAvailableStatus() local 83 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in GetAvailableStatus() 90 std::string errMsg = "Parameter error. The type of \"authTrustLevel\" must be number"; in GetAvailableStatus() local 91 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in GetAvailableStatus() 121 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; in ParseContextForGetSetProperty() local 122 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForGetSetProperty() 137 std::string errMsg = "Parameter error. The type of \"request\" must be GetPropertyRequest"; in ParseContextForGetSetProperty() local 138 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, tru in ParseContextForGetSetProperty() 144 std::string errMsg = "Parameter error. The type of \\"request\\" must be SetPropertyRequest"; ParseContextForGetSetProperty() local 229 std::string errMsg = "Parameter error. The type of \\"remoteAuthOptions\\" must be object"; ParseContextForRemoteAuthOptions() local 236 std::string errMsg = "Parameter error. The type of \\"verifierNetworkId\\" must be string"; ParseContextForRemoteAuthOptions() local 243 std::string errMsg = "Parameter error. The type of \\"collectorNetworkId\\" must be string"; ParseContextForRemoteAuthOptions() local 251 std::string errMsg = "Parameter error. The type of \\"collectorTokenId\\" must be number"; ParseContextForRemoteAuthOptions() local 269 std::string errMsg = "Parameter error. The type of \\"authOptions\\" must be object"; ParseContextForAuthOptions() local 276 std::string errMsg = "Parameter error. The type of \\"accountId\\" must be number"; ParseContextForAuthOptions() local 284 std::string errMsg = "Parameter error. The type of \\"authIntent\\" must be AuthIntent"; ParseContextForAuthOptions() local 313 std::string errMsg = "Parameter error. The type of \\"challenge\\" must be Uint8Array"; ParseContextForAuth() local 319 std::string errMsg = "Parameter error. The type of \\"authType\\" must be AuthType"; ParseContextForAuth() local 325 std::string errMsg = "Parameter error. The type of \\"authTrustLevel\\" must be AuthTrustLevel"; ParseContextForAuth() local 338 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseContextForAuth() local 350 std::string errMsg = "Parameter error. The number of parameters should be at least 5"; ParseContextForAuthUser() local 356 std::string errMsg = "Parameter error. The type of \\"userId\\" must be number"; ParseContextForAuthUser() local 370 std::string errMsg = "Parameter error. The number of parameters should be at least 4"; Auth() local 416 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; CancelAuth() local 423 std::string errMsg = "Parameter error. The type of \\"contextID\\" must be Uint8Array"; CancelAuth() local 445 std::string errMsg = "Parameter error. The arg number must be at least 1 characters"; ParseContextForPrepareRemoteAuth() local 451 std::string errMsg = "Parameter error. The type of remoteNetworkId must be string"; ParseContextForPrepareRemoteAuth() local [all...] |
H A D | napi_account_iam_identity_manager.cpp | 69 std::string errMsg = "Parameter error. The type of arg 1 must be function or number"; in ParseContextForOpenSession() local 70 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForOpenSession() 85 std::string errMsg = "Parameter error. The type of \"accountId\" must be number"; in ParseContextForCloseSession() local 86 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForCloseSession() 145 std::string errMsg = "Parameter error. The number of parameters should be 2"; in ParseContextForUpdateCredential() local 146 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForUpdateCredential() 150 std::string errMsg = "Parameter error. The type of \"credentialInfo\" must be CredentialInfo"; in ParseContextForUpdateCredential() local 151 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForUpdateCredential() 156 std::string errMsg = "Parameter error. The type of \"callback\" must be function"; in ParseContextForUpdateCredential() local 157 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, tru in ParseContextForUpdateCredential() 245 std::string errMsg = "Parameter error. The number of parameters should be 1"; Cancel() local 253 std::string errMsg = "Parameter error. The type of \\"challenge\\" must be Uint8Array"; Cancel() local 275 std::string errMsg = "Parameter error. The number of parameters should be 2"; ParseContextForDelUser() local 280 std::string errMsg = "Parameter error. The type of \\"token\\" must be Uint8Array"; ParseContextForDelUser() local 286 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseContextForDelUser() local 321 std::string errMsg = "Parameter error. The number of parameters should be 3"; ParseContextForDelCred() local 326 std::string errMsg = "Parameter error. The type of \\"credentialId\\" must be Uint8Array"; ParseContextForDelCred() local 331 std::string errMsg = "Parameter error. The type of \\"token\\" must be Uint8Array"; ParseContextForDelCred() local 337 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseContextForDelCred() local 388 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseOneParamForGetAuthInfo() local 395 std::string errMsg = "Parameter error. The type of \\"authType\\" must be AuthType"; ParseOneParamForGetAuthInfo() local 403 std::string errMsg = "Parameter error. The type of \\"options\\" must be object"; ParseOneParamForGetAuthInfo() local 413 std::string errMsg = "Parameter error. The type of arg 1 must be AuthType, function or object"; ParseOneParamForGetAuthInfo() local 439 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseContextForGetAuthInfo() local 450 std::string errMsg = "Parameter error. The type of \\"authType\\" must be AuthType"; ParseContextForGetAuthInfo() local 490 ParseContextForGetEnrolledId( napi_env env, napi_callback_info info, GetEnrolledIdContext *context, std::string &errMsg) ParseContextForGetEnrolledId() argument 519 std::string errMsg; GetEnrolledId() local [all...] |
/base/update/updater/services/ui/view/page/ |
H A D | view_proxy.h | 45 std::string errMsg {}; in As() 46 return As<T>(errMsg); in As() 49 T *As(std::string &errMsg) const in As() 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() 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() [all...] |
/base/msdp/device_status/utils/common/src/ |
H A D | util_napi_error.cpp | 49 std::string errMsg;
in HandleExecuteResult() local 50 if (!UtilNapiError::GetErrorMsg(errCode, errMsg)) {
in HandleExecuteResult() 54 THROWERR_CUSTOM(env, errCode, errMsg.c_str());
in HandleExecuteResult() 58 std::string errMsg;
in HandleExecuteResult() local 59 if (!UtilNapiError::GetErrorMsg(errCode, errMsg)) {
in HandleExecuteResult() 63 THROWERR_CUSTOM(env, COMMON_PARAMETER_ERROR, errMsg.c_str());
in HandleExecuteResult()
|
/base/account/os_account/dfx/hisysevent_adapter/ |
H A D | account_hisysevent_adapter.cpp | 29 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() 72 "ERROR_MSG", errMsg);
in ReportOsAccountOperationFail() 74 ACCOUNT_LOGE("ret %{public}d, id %{public}d, opStr %{public}s, errCode %{public}d errMsg %{public}s.",
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() 94 "ERROR_MSG", errMsg);
in ReportOhosAccountOperationFail() 96 ACCOUNT_LOGE("ret %{public}d, userId %{public}d, opStr %{public}s, errCode %{public}d errMsg in ReportOhosAccountOperationFail() 63 ReportOsAccountOperationFail( int32_t id, const std::string& operationStr, int32_t errCode, const std::string& errMsg) ReportOsAccountOperationFail() argument 85 ReportOhosAccountOperationFail( int32_t userId, const std::string& operationStr, int32_t errCode, const std::string& errMsg) ReportOhosAccountOperationFail() argument 107 ReportAppAccountOperationFail(const std::string &name, const std::string &owner, const std::string& operationStr, int32_t errCode, const std::string& errMsg) ReportAppAccountOperationFail() argument [all...] |
H A D | account_hisysevent_adapter.h | 23 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/hiviewdfx/hilog/test/unittest/common/ |
H A D | hilogtool_test.cpp | 175 std::string errMsg = ErrorCode2Str(ERR_LOG_LEVEL_INVALID) + "\n";
in HWTEST_F() local 176 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
in HWTEST_F() local 200 std::string errMsg = ErrorCode2Str(ERR_INVALID_DOMAIN_STR) + "\n";
in HWTEST_F() local 201 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
in HWTEST_F() local 225 std::string errMsg = ErrorCode2Str(ERR_TAG_STR_TOO_LONG) + "\n";
in HWTEST_F() local 226 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
in HWTEST_F() local 257 std::string errMsg = ErrorCode2Str(ERR_INVALID_SIZE_STR) + "\n";
in HWTEST_F() local 258 EXPECT_EQ(GetCmdResultFromPopen(inValidStrCmd), errMsg);
in HWTEST_F() local 305 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\n";
in HWTEST_F() local 306 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg);
in HWTEST_F() local 334 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\\n"; HWTEST_F() local 335 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 376 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\\n"; HWTEST_F() local 377 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 401 std::string errMsg = ErrorCode2Str(ERR_NOT_NUMBER_STR) + "\\n"; HWTEST_F() local 402 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 405 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 409 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 471 std::string errMsg = ErrorCode2Str(ERR_LOG_TYPE_INVALID) + "\\n"; HWTEST_F() local 472 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 520 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\\n"; HWTEST_F() local 521 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 527 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 531 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 535 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 539 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 568 std::string errMsg = ErrorCode2Str(ERR_REGEX_STR_TOO_LONG) + "\\n"; HWTEST_F() local 569 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 595 std::string errMsg = ErrorCode2Str(ERR_LOG_LEVEL_INVALID) + "\\n"; HWTEST_F() local 596 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 600 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 604 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 631 std::string errMsg = ErrorCode2Str(ERR_NOT_NUMBER_STR) + "\\n"; HWTEST_F() local 632 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 772 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\\n"; HWTEST_F() local 773 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 777 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local 781 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); HWTEST_F() local [all...] |
/base/location/frameworks/js/napi/source/ |
H A D | location_napi_errcode.cpp | 26 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/global/i18n/interfaces/js/kits/src/ |
H A D | error_util.cpp | 44 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : "";
in NapiThrow() local 48 allErrMsg = errMsg;
in NapiThrow() 50 allErrMsg = errMsg + ", the " + valueName + " must be " + valueContent + ".";
in NapiThrow() 52 allErrMsg = errMsg + ", the " + valueName + " cannot be empty.";
in NapiThrow() 54 allErrMsg = errMsg + ", the type of " + valueName + " must be " + valueContent + ".";
in NapiThrow()
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
H A D | napi_os_account_common.cpp | 86 std::string errMsg = "Parameter error. The type of \"callback\" must be function"; in ParseOneParaContext() local 87 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseOneParaContext() 103 std::string errMsg = "Parameter error. The type of \"callback\" must be function"; in ParseCallbackAndId() local 104 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId() 110 std::string errMsg = "Parameter error. The type of \"localId\" must be number"; in ParseCallbackAndId() local 111 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId() 125 std::string errMsg = "The number of parameters should be at least 1"; in ParseParaDeactivateOA() local 126 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseParaDeactivateOA() 131 std::string errMsg = "The type of first arg must be number"; in ParseParaDeactivateOA() local 132 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, tru in ParseParaDeactivateOA() 360 std::string errMsg = "The type of arg " + std::to_string(argc) + " must be function"; ParseParaSetOAName() local 368 std::string errMsg = "The type of arg 1 must be number"; ParseParaSetOAName() local 374 std::string errMsg = "The type of arg 2 must be string"; ParseParaSetOAName() local 417 std::string errMsg = "The type of arg " + std::to_string(argc) + " must be function"; ParseParaSetOAConstraints() local 426 std::string errMsg = "The type of arg 1 must be number"; ParseParaSetOAConstraints() local 434 std::string errMsg = "The type of arg 2 must be unempty array of strings"; ParseParaSetOAConstraints() local 442 std::string errMsg = "The type of arg 3 must be boolean"; ParseParaSetOAConstraints() local 517 std::string errMsg = "Parameter error. The type of arg 3 must be function or CreateOsAccountOptions"; ParseParaCreateOA() local 528 std::string errMsg = "Parameter error. The type of \\"localName\\" must be string"; ParseParaCreateOA() local 536 std::string errMsg = "Parameter error. The type of \\"type\\" must be OsAccountType"; ParseParaCreateOA() local 601 std::string errMsg = ParseParaCreateOAForDomain() local 612 std::string errMsg = "Parameter error. The type of \\"type\\" must be OsAccountType"; ParseParaCreateOAForDomain() local 620 std::string errMsg = "Parameter error. The type of \\"domainInfo\\" must be DomainAccountInfo"; ParseParaCreateOAForDomain() local 887 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseQueryOAConstraintSrcTypes() local 895 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseQueryOAConstraintSrcTypes() local 901 std::string errMsg = "Parameter error. The type of \\"constraint\\" must be string"; ParseQueryOAConstraintSrcTypes() local 1150 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParaGetIdByUid() local 1158 std::string errMsg = "Parameter error. The type of \\"uid\\" must be number"; ParseParaGetIdByUid() local 1173 std::string errMsg = "The type of arg " + std::to_string(argc) + " must be function"; ParseParaGetIdByDomain() local 1181 std::string errMsg = "DomainInfo parse failed"; ParseParaGetIdByDomain() local 1280 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParaSetPhoto() local 1288 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseParaSetPhoto() local 1294 std::string errMsg = "Parameter error. The type of \\"photo\\" must be string"; ParseParaSetPhoto() local 1415 std::string errMsg = "Parameter error. The type of \\"constraint\\" must be string"; ParseParaIsEnable() local 1424 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParaIsEnable() local 1432 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseParaIsEnable() local 1438 std::string errMsg = "Parameter error. The type of \\"constraint\\" must be string"; ParseParaIsEnable() local 1502 std::string errMsg = "Parameter error. The type of arg " + std::to_string(argc) + " must be function or number"; ParseParaGetType() local 1580 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseParaIsVerifiedWithOneParam() local 1588 std::string errMsg = "The type of arg 1 must be function"; ParseParaIsVerifiedWithOneParam() local 1596 std::string errMsg = "The type of arg 1 must be number or function"; ParseParaIsVerifiedWithOneParam() local 1618 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParaIsVerified() local 1629 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseParaIsVerified() local 1683 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParaSerialNumId() local 1690 std::string errMsg = "Parameter error. The type of \\"serialNumber\\" must be number"; ParseParaSerialNumId() local 1776 std::string errMsg = "Parameter error. The number of parameters should be at least 3"; ParseParamForActiveSubscriber() local 1783 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParamForActiveSubscriber() local 1799 std::string errMsg = "Parameter error. The type of \\"name\\" must be string"; ParseParamForActiveSubscriber() local 1806 std::string errMsg = "Parameter error. The length of \\"name\\" is invalid"; ParseParamForActiveSubscriber() local 1819 std::string errMsg = "Parameter error. The number of parameters should be at least 2"; ParseParamForSwitchSubscriber() local 1826 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParamForSwitchSubscriber() local 1849 std::string errMsg = "Parameter error. The number of parameters should be at least 2"; ParseParaToSubscriber() local 1856 std::string errMsg = "Parameter error. The type of \\"type\\" must be string"; ParseParaToSubscriber() local 1867 std::string errMsg = "Parameter error. The content of \\"type\\" must be \\"activate|activating|switched|switching\\""; ParseParaToSubscriber() local 1877 std::string errMsg = "The arg number must be at least 2 characters"; ParseParamForActiveUnsubscriber() local 1884 std::string errMsg = "The type of arg " + std::to_string(PARAMTWO + 1) + " must be function"; ParseParamForActiveUnsubscriber() local 1900 std::string errMsg = "The type of arg 2 must be string"; ParseParamForActiveUnsubscriber() local 1907 std::string errMsg = "The length of arg 2 is invalid"; ParseParamForActiveUnsubscriber() local 1920 std::string errMsg = "The arg number must be at least 1 characters"; ParseParamForSwitchUnsubscriber() local 1927 std::string errMsg = "The type of arg " + std::to_string(PARAMONE + 1) + " must be function"; ParseParamForSwitchUnsubscriber() local 1950 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseParaToUnsubscriber() local 1957 std::string errMsg = "Parameter error. The type of \\"type\\" must be string"; ParseParaToUnsubscriber() local 1968 std::string errMsg = "Parameter error. The content of \\"type\\" must be \\"activate|activating|switched|switching\\""; ParseParaToUnsubscriber() local [all...] |
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
H A D | napi_hiappevent_config.cpp | 48 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/update/updateservice/foundations/model/include/ |
H A D | business_error.h | 44 ErrorMessage errMsg; in AddErrorMessage() local 45 errMsg.errorCode = errorCode; in AddErrorMessage() 46 errMsg.errorMessage = errorMessage; in AddErrorMessage() 47 data.push_back(errMsg); in AddErrorMessage()
|
/base/usb/usb_manager/utils/native/src/ |
H A D | usb_napi_errors.cpp | 34 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/account/os_account/interfaces/kits/napi/distributedaccount/src/ |
H A D | napi_distributed_account.cpp | 88 std::string errMsg = "Parameter error. The type of \"callback\" must be function";
in ParseQueryOhosAccountInfoAsyncContext() local 89 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr);
in ParseQueryOhosAccountInfoAsyncContext() 100 std::string errMsg = "Parameter error. The type of " + PROPERTY_KEY_NAME + " must be string";
in GetAccountInfo() local 101 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr);
in GetAccountInfo() 106 std::string errMsg = "Parameter error. The type of " + PROPERTY_KEY_ID + " must be string";
in GetAccountInfo() local 107 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr);
in GetAccountInfo() 112 std::string errMsg = "Parameter error. The type of " + PROPERTY_KEY_NICKNAME + " must be string";
in GetAccountInfo() local 113 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr);
in GetAccountInfo() 118 std::string errMsg = "Parameter error. The type of " + PROPERTY_KEY_AVATAR + " must be string";
in GetAccountInfo() local 119 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContex in GetAccountInfo() 135 std::string errMsg = "Parameter error. The type of " + PROPERTY_KEY_SCALABLE + " must be object"; GetAccountInfo() local 151 std::string errMsg = "Parameter error. The type of \\"accountInfo\\" must be DistributedInfo"; ParseInfoAndEvent() local 160 std::string errMsg = "Parameter error. The type of " + PROPERTY_KEY_EVENT + " must be string"; ParseInfoAndEvent() local 175 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseUpdateOhosAccountInfoAsyncContext() local 182 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseUpdateOhosAccountInfoAsyncContext() local 434 std::string errMsg = "Parameter error. The number of parameters should be at least 2"; ParseSetOsAccountDistributedInfoByLocalId() local 441 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseSetOsAccountDistributedInfoByLocalId() local 448 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseSetOsAccountDistributedInfoByLocalId() local 493 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseGetOsAccountDistributedInfoByLocalId() local 500 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseGetOsAccountDistributedInfoByLocalId() local 507 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseGetOsAccountDistributedInfoByLocalId() local [all...] |
/base/hiviewdfx/hiview/base/running_status_logger/ |
H A D | running_status_logger.cpp | 33 char errMsg[BUF_SIZE] = { 0 }; member 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/frameworks/js/napi/common/src/ |
H A D | napi_error.cpp | 56 std::string errMsg = "Unknown error, errCode + " + std::to_string(errCode) + "."; in GetErrorMessage() local 57 return errMsg; in GetErrorMessage() 60 napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string& errMsg) in GenerateBusinessError() argument 68 NAPI_CALL(env, napi_create_string_utf8(env, errMsg.c_str(), NAPI_AUTO_LENGTH, &msg)); in GenerateBusinessError()
|
/base/security/security_guard/frameworks/common/data_collect_manager/src/ |
H A D | data_collect_manager_callback_service.cpp | 27 const std::string& errMsg) in ResponseRiskData() 30 callback_(devId, riskData, status, errMsg); in ResponseRiskData() 26 ResponseRiskData(std::string &devId, std::string &riskData, uint32_t status, const std::string& errMsg) ResponseRiskData() argument
|
/base/update/updateservice/services/firmware/upgrade/executor/src/ |
H A D | firmware_install_executor.cpp | 76 [=](const bool result, const ErrorMessage &errMsg) { in DoInstall() 77 HandleInstallResult(result, errMsg); in DoInstall() 120 void FirmwareInstallExecutor::HandleInstallResult(const bool result, const ErrorMessage &errMsg) in HandleInstallResult() argument 136 installCallbackInfo_.errorMessage.errorCode = errMsg.errorCode; in HandleInstallResult() 137 installCallbackInfo_.errorMessage.errorMessage = errMsg.errorMessage; in HandleInstallResult()
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
H A D | napi_app_account_common.cpp | 506 asyncContext->errMsg = "the number of parameters should be at least 1"; in ParseContextWithExInfo() 511 asyncContext->errMsg = "the name is not a string"; in ParseContextWithExInfo() 524 asyncContext->errMsg = "the extraInfo is not a string"; in ParseContextWithExInfo() 535 asyncContext->errMsg = "the type of param 2 is incorrect"; in ParseContextWithExInfo() 564 context->errMsg = "the number of parameters should be at least 4"; in ParseContextForAuth() 568 context->errMsg = "Parameter error. The type of \"name\" must be string"; in ParseContextForAuth() 572 context->errMsg = "Parameter error. The type of \"owner\" must be string"; in ParseContextForAuth() 576 context->errMsg = "Parameter error. The type of \"authType\" must be string"; in ParseContextForAuth() 588 context->errMsg = "Parameter error. The type of \"options\" must be Record"; in ParseContextForAuth() 597 context->errMsg in ParseContextForAuth() [all...] |
/base/account/os_account/interfaces/kits/napi/domain_account/src/ |
H A D | napi_domain_account_manager.cpp | 200 std::string errMsg = "Parameter error. The number of parameters should be at least 2";
in ParseParamForUpdateAccountToken() local 201 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true);
in ParseParamForUpdateAccountToken() 207 std::string errMsg = "Parameter error. The type of \"callback\" must be function";
in ParseParamForUpdateAccountToken() local 208 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true);
in ParseParamForUpdateAccountToken() 214 std::string errMsg = "Parameter error. The type of \"domainAccountInfo\" must be DomainAccountInfo";
in ParseParamForUpdateAccountToken() local 215 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true);
in ParseParamForUpdateAccountToken() 220 std::string errMsg = "Parameter error. The type of \"token\" must be Uint8Array";
in ParseParamForUpdateAccountToken() local 221 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true);
in ParseParamForUpdateAccountToken() 235 std::string errMsg = "Parameter error. The number of parameters should be at least 1";
in ParseParamForIsAuthenticationExpired() local 236 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, tru in ParseParamForIsAuthenticationExpired() 241 std::string errMsg = "Parameter error. The type of \\"domainAccountInfo\\" must be DomainAccountInfo"; ParseParamForIsAuthenticationExpired() local 269 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseParamForGetAccessToken() local 278 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParamForGetAccessToken() local 284 std::string errMsg = "Parameter error. The type of \\"businessParams\\" must be Record"; ParseParamForGetAccessToken() local 988 std::string errMsg = "Parameter error. The type of \\"plugin\\" must be DomainPlugin"; RegisterPlugin() local 1009 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseParamForHasDomainAccount() local 1016 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParamForHasDomainAccount() local 1023 std::string errMsg = "Parameter error. The type of \\"domainAccountInfo\\" must be DomainAccountInfo"; ParseParamForHasDomainAccount() local 1047 std::string errMsg = "Parameter error. The number of parameters should be at least 3"; ParseContextForAuth() local 1054 std::string errMsg = "Parameter error. The type of \\"domainAccountInfo\\" must be DomainAccountInfo"; ParseContextForAuth() local 1060 std::string errMsg = "Parameter error. The type of \\"credential\\" must be Uint8Array"; ParseContextForAuth() local 1066 std::string errMsg = "Parameter error. The type of \\"callback\\" must be IUserAuthCallback"; ParseContextForAuth() local 1119 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseContextForAuthWithPopup() local 1125 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseContextForAuthWithPopup() local 1136 std::string errMsg = "Parameter error. The type of \\"localId\\" must be number"; ParseContextForAuthWithPopup() local 1510 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; ParseParamForGetAccountInfo() local 1517 std::string errMsg = "Parameter error. The type of \\"callback\\" must be function"; ParseParamForGetAccountInfo() local 1524 std::string errMsg = "Parameter error. The type of \\"options\\" must be GetDomainAccountInfoOptions"; ParseParamForGetAccountInfo() local 1647 std::string errMsg = "Parameter error. The number of parameters should be at least 2"; ParseParamForUpdateAccountInfo() local 1653 std::string errMsg = "Parameter error. The type of \\"oldAccountInfo\\" must be DomainAccountInfo"; ParseParamForUpdateAccountInfo() local 1659 std::string errMsg = "Parameter error. The type of \\"newAccountInfo\\" must be DomainAccountInfo"; ParseParamForUpdateAccountInfo() local [all...] |
/base/security/security_guard/services/data_collect/sa/ |
H A D | data_collect_manager_callback_proxy.cpp | 28 uint32_t status, const std::string& errMsg)
in ResponseRiskData() 39 data.WriteString(errMsg);
in ResponseRiskData() 27 ResponseRiskData(std::string &devId, std::string &riskData, uint32_t status, const std::string& errMsg) ResponseRiskData() argument
|