/base/global/resource_management/dfx/hisysevent_adapter/ |
D | hisysevent_adapter.cpp | 24 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 …]
|
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 …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/ |
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) \ argument 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… argument 56 #define USB_ASSERT_RETURN_VOID(env, assertion, errCode, errMsg) \ argument 57 USB_ASSERT_BASE(env, assertion, errCode, errMsg, NOTHING) 58 …USB_ASSERT_RETURN_FALSE(env, assertion, errCode, errMsg) USB_ASSERT_BASE(env, assertion, errCode, … argument 59 #define USB_ASSERT_RETURN_UNDEF(env, assertion, errCode, errMsg) \ argument [all …]
|
/base/account/os_account/interfaces/kits/napi/account_iam/src/ |
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 = "Parameter error. The type of \"inputer\" must be IInputer"; in ParseContextForRegisterInputer() local [all …]
|
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, true); in ParseContextForGetSetProperty() [all …]
|
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, true); in ParseContextForUpdateCredential() [all …]
|
D | napi_account_iam_pin_auth.cpp | 58 std::string errMsg = "Parameter error. The number of parameters should be at least 1"; in ParseContextForRegisterInputer() local 59 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer() 71 std::string errMsg = "Parameter error. The type of \"inputer\" must be function or object"; in ParseContextForRegisterInputer() local 72 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseContextForRegisterInputer()
|
/base/update/updater/services/ui/view/page/ |
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() 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/account/os_account/dfx/hisysevent_adapter/ |
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() 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 …]
|
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/ |
D | hilogtool_test.cpp | 175 std::string errMsg = ErrorCode2Str(ERR_LOG_LEVEL_INVALID) + "\n"; variable 176 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); 200 std::string errMsg = ErrorCode2Str(ERR_INVALID_DOMAIN_STR) + "\n"; variable 201 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); 225 std::string errMsg = ErrorCode2Str(ERR_TAG_STR_TOO_LONG) + "\n"; variable 226 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); 257 std::string errMsg = ErrorCode2Str(ERR_INVALID_SIZE_STR) + "\n"; variable 258 EXPECT_EQ(GetCmdResultFromPopen(inValidStrCmd), errMsg); 305 std::string errMsg = ErrorCode2Str(ERR_INVALID_ARGUMENT) + "\n"; variable 306 EXPECT_EQ(GetCmdResultFromPopen(cmd), errMsg); [all …]
|
/base/msdp/device_status/utils/common/src/ |
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/global/i18n/interfaces/js/kits/src/ |
D | error_util.cpp | 42 std::string errMsg = iter != ErrorCodeToMsg.end() ? iter->second : ""; in NapiThrow() local 46 allErrMsg = errMsg; in NapiThrow() 48 allErrMsg = errMsg + ", the " + valueName + " must be " + valueContent + "."; in NapiThrow() 50 allErrMsg = errMsg + ", the " + valueName + " cannot be empty."; in NapiThrow() 52 allErrMsg = errMsg + ", the type of " + valueName + " must be " + valueContent + "."; in NapiThrow()
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
D | napi_os_account_common.cpp | 85 std::string errMsg = "Parameter error. The type of \"callback\" must be function"; in ParseOneParaContext() local 86 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseOneParaContext() 102 std::string errMsg = "Parameter error. The type of \"callback\" must be function"; in ParseCallbackAndId() local 103 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId() 109 std::string errMsg = "Parameter error. The type of \"localId\" must be number"; in ParseCallbackAndId() local 110 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId() 124 std::string errMsg = "The number of parameters should be at least 1"; in ParseParaDeactivateOA() local 125 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseParaDeactivateOA() 130 std::string errMsg = "The type of first arg must be number"; in ParseParaDeactivateOA() local 131 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, true); in ParseParaDeactivateOA() [all …]
|
/base/location/frameworks/js/napi/source/ |
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/hiviewdfx/hiview/base/running_status_logger/ |
D | running_status_logger.cpp | 33 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/update/updateservice/foundations/model/include/ |
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/ |
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/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
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/account/os_account/interfaces/kits/napi/appaccount/src/ |
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 = "Parameter error. The type of \"callback\" must be AuthCallback"; in ParseContextForAuth() [all …]
|
/base/security/access_token/interfaces/kits/common/src/ |
D | napi_error.cpp | 51 std::string errMsg = "Unknown error, errCode + " + std::to_string(errCode) + "."; in GetErrorMessage() local 52 return errMsg; in GetErrorMessage() 55 napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string& errMsg) in GenerateBusinessError() argument 63 NAPI_CALL(env, napi_create_string_utf8(env, errMsg.c_str(), NAPI_AUTO_LENGTH, &msg)); in GenerateBusinessError()
|
/base/update/updateservice/services/firmware/upgrade/executor/src/ |
D | firmware_install_executor.cpp | 72 [=](const bool result, const ErrorMessage &errMsg) { in DoInstall() 73 HandleInstallResult(result, errMsg); in DoInstall() 112 void FirmwareInstallExecutor::HandleInstallResult(const bool result, const ErrorMessage &errMsg) in HandleInstallResult() argument 128 installCallbackInfo_.errorMessage.errorCode = errMsg.errorCode; in HandleInstallResult() 129 installCallbackInfo_.errorMessage.errorMessage = errMsg.errorMessage; in HandleInstallResult()
|
/base/security/access_token/interfaces/kits/accesstoken/napi/src/ |
D | napi_atmanager.cpp | 375 std::string errMsg; in ParseInputVerifyPermissionOrGetFlag() local 386 errMsg = GetParamErrorMsg("tokenId", "number"); in ParseInputVerifyPermissionOrGetFlag() 388 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag() 394 errMsg = GetParamErrorMsg("permissionName", "string"); in ParseInputVerifyPermissionOrGetFlag() 396 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag() 594 std::string errMsg = GetParamErrorMsg("tokenID", "number"); in VerifyAccessTokenSync() local 595 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_INVALID, errMsg))); in VerifyAccessTokenSync() 600 std::string errMsg = GetParamErrorMsg("permissionName", "string"); in VerifyAccessTokenSync() local 601 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JS_ERROR_PARAM_INVALID, errMsg))); in VerifyAccessTokenSync() 634 std::string errMsg; in ParseInputGrantOrRevokePermission() local [all …]
|
/base/security/security_guard/interfaces/inner_api/data_collect_manager/src/ |
D | data_collect_manager_callback_service.cpp | 27 const std::string& errMsg) in ResponseRiskData() argument 30 callback_(devId, riskData, status, errMsg); in ResponseRiskData()
|
/base/account/os_account/interfaces/kits/napi/domain_account/src/ |
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, true); in ParseParamForIsAuthenticationExpired() [all …]
|