Home
last modified time | relevance | path

Searched refs:errMessage (Results 1 – 19 of 19) sorted by relevance

/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/src/
Dbundle_manager_proxy.cpp183 AppExecFwk::InstallParam &installParam, std::string &errMessage) in Install() argument
193 ErrCode res = WriteFileToStream(admin, hapFilePath, realPaths, errMessage); in Install()
215 errMessage = reply.ReadString(); in Install()
222 std::vector<std::string> &servicePaths, std::string &errMessage) in WriteFileToInner() argument
228 errMessage = "write file to stream failed due to invalid file descriptor"; in WriteFileToInner()
238 errMessage = "write file to stream failed due to open the hap file"; in WriteFileToInner()
248 errMessage = "write file to the temp dir failed"; in WriteFileToInner()
259 std::vector<std::string> &servicePaths, std::string &errMessage) in WriteFileToStream() argument
263 ErrCode checkRet = checkHapFilePath(hapFilePath, fileName, realPath, errMessage); in WriteFileToStream()
286 errMessage = reply.ReadString(); in WriteFileToStream()
[all …]
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_error.cpp47 napi_value CreateErrorWithInnerCode(napi_env env, ErrCode errorCode, std::string &errMessage) in CreateErrorWithInnerCode() argument
52 pair.second = pair.second.replace(iter, 1, errMessage); in CreateErrorWithInnerCode()
57 napi_value CreateError(napi_env env, int32_t errorCode, const std::string &errMessage) in CreateError() argument
64 napi_create_string_utf8(env, errMessage.c_str(), errMessage.size(), &message); in CreateError()
/base/customization/enterprise_device_management/interfaces/kits/common/include/
Dnapi_edm_error.h27 napi_value CreateError(napi_env env, int32_t errorCode, const std::string &errMessage);
28 napi_value CreateErrorWithInnerCode(napi_env env, ErrCode errorCode, std::string &errMessage);
Dnapi_edm_common.h38 std::string errMessage; member
/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/include/
Dbundle_manager_proxy.h45 std::string &errMessage);
47 std::vector<std::string> &servicePaths, std::string &errMessage);
49 std::string &errMessage);
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_napi_error.cpp29 napi_value CreateNapiError(const napi_env &env, int32_t errCode, const std::string &errMessage) in CreateNapiError() argument
35 NAPI_CALL(env, napi_create_string_utf8(env, errMessage.c_str(), NAPI_AUTO_LENGTH, &msg)); in CreateNapiError()
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_napi_error.cpp25 …alue CreateBusinessError(const napi_env &env, const int32_t errCode, const std::string &errMessage) in CreateBusinessError() argument
31 NAPI_CALL(env, napi_create_string_utf8(env, errMessage.c_str(), NAPI_AUTO_LENGTH, &msg)); in CreateBusinessError()
/base/sensors/sensor/interfaces/plugin/src/
Dsensor_napi_error.cpp25 …alue CreateBusinessError(const napi_env &env, const int32_t errCode, const std::string &errMessage) in CreateBusinessError() argument
31 NAPI_CALL(env, napi_create_string_utf8(env, errMessage.c_str(), NAPI_AUTO_LENGTH, &msg)); in CreateBusinessError()
/base/sensors/sensor/interfaces/plugin/include/
Dsensor_napi_error.h33 …lue CreateBusinessError(const napi_env &env, const int32_t errCode, const std::string &errMessage);
/base/sensors/miscdevice/interfaces/plugin/vibrator/include/
Dvibrator_napi_error.h34 …lue CreateBusinessError(const napi_env &env, const int32_t errCode, const std::string &errMessage);
/base/msdp/device_status/frameworks/js/napi/include/
Ddevicestatus_napi_error.h34 napi_value CreateNapiError(const napi_env &env, int32_t errCode, const std::string &errMessage);
/base/time/time_service/framework/js/napi/common/include/
Dnapi_utils.h46 (context)->errMessage = std::string(message); \
56 (context)->errMessage = std::string(message); \
Dnapi_work.h43 std::string errMessage; member
/base/customization/enterprise_device_management/test/unittest/bundle_manager_proxy/
Dbundle_manager_proxy_test.cpp246 string errMessage; variable
247 ErrCode ret = bundleManagerProxy->WriteFileToStream(admin, hapFilePath, realPaths, errMessage);
249 ASSERT_TRUE(errMessage == "install failed due to invalid hapFilePaths");
/base/customization/config_policy/interfaces/kits/js/include/
Dconfig_policy_napi.h61 static napi_value ThrowNapiError(napi_env env, int32_t errCode, const std::string &errMessage);
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp284 …alue ConfigPolicyNapi::ThrowNapiError(napi_env env, int32_t errCode, const std::string &errMessage) in ThrowNapiError() argument
286 napi_throw_error(env, std::to_string(errCode).c_str(), errMessage.c_str()); in ThrowNapiError()
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/
Dbundle_manager_addon.cpp116 asyncCallbackInfo->userId, asyncCallbackInfo->isKeepData, asyncCallbackInfo->errMessage); in NativeUninstall()
179 CreateError(env, asyncCallbackInfo->ret, asyncCallbackInfo->errMessage)); in NativeUninstallCallbackComplete()
189 error = CreateError(env, asyncCallbackInfo->ret, asyncCallbackInfo->errMessage); in NativeUninstallCallbackComplete()
/base/location/frameworks/native/source/
Dnapi_util.cpp803 std::string errMessage = "BussinessError "; in GetErrorMsgByCode() local
804 errMessage.append(std::to_string(code)).append(": ").append(iter->second); in GetErrorMsgByCode()
805 return errMessage; in GetErrorMsgByCode()
/base/telephony/core_service/frameworks/js/sim/src/
Dnapi_sim.cpp127 const std::string &errMessage, bool funcIgnoreReturnVal = false, int errorCode = ERROR_DEFAULT) in NapiAsyncCompleteCallback() argument
137 napi_value errorMessage = NapiUtil::CreateErrorMessage(env, errMessage, errorCode); in NapiAsyncCompleteCallback()
149 callbackValue[0] = NapiUtil::CreateErrorMessage(env, errMessage, errorCode); in NapiAsyncCompleteCallback()