Home
last modified time | relevance | path

Searched refs:CreateError (Results 1 – 17 of 17) sorted by relevance

/base/customization/enterprise_device_management/interfaces/kits/common/include/
Dnapi_edm_error.h26 napi_value CreateError(napi_env env, ErrCode errorCode);
27 napi_value CreateError(napi_env env, int32_t errorCode, const std::string &errMessage);
32 … napi_throw((env), CreateError((env), (EdmReturnErrCode::PARAM_ERROR), (message))); \
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_error.cpp59 napi_value CreateError(napi_env env, ErrCode errorCode) in CreateError() function
61 return CreateError(env, GetMessageFromReturncode(errorCode).first, in CreateError()
65 napi_value CreateError(napi_env env, int32_t errorCode, const std::string &errMessage) in CreateError() function
Dnapi_edm_common.cpp134 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeVoidCallbackComplete()
140 error = CreateError(env, asyncCallbackInfo->ret); in NativeVoidCallbackComplete()
186 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeBoolCallbackComplete()
198 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeBoolCallbackComplete()
226 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeStringCallbackComplete()
239 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeStringCallbackComplete()
/base/web/webview/interfaces/kits/napi/common/
Dbusiness_error.h31 static napi_value CreateError(napi_env env, int32_t err);
Dbusiness_error.cpp22 napi_value BusinessError::CreateError(napi_env env, int32_t err) in CreateError() function in OHOS::NWebError::BusinessError
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_javascript_execute_callback.cpp104 setResult[INTEGER_ZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbAsync()
125 … setResult[INTEGER_ZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbPromise()
Dwebview_controller.cpp213 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INIT_ERROR); in StoreWebArchiveCallback()
242 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in StoreWebArchiveCallback()
267 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in StoreWebArchivePromise()
288 … setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in StoreWebArchivePromise()
678 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INIT_ERROR); in RunJavaScriptCallback()
704 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in RunJavaScriptPromise()
750 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INIT_ERROR); in HasImagesCallback()
776 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in HasImagesPromise()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_write.cpp53 NapiUtil::CreateError(env, errMap.at(result).first, errMap.at(result).second); in BuildErrorByResult()
Dnapi_util.cpp442 napi_value CreateError(napi_env env, int code, const std::string& msg) in CreateError() function
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/
Dnapi_hisysevent_util.h66 static napi_value CreateError(napi_env env, const int32_t code, const std::string& msg);
/base/web/webview/interfaces/kits/napi/webstorage/
Dnapi_web_storage.cpp175 …setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, NWebError::NO_WEBSTORAGE_ORIGIN); in GetOriginComplete()
202 …setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, NWebError::NO_WEBSTORAGE_ORIGIN); in GetOriginsPromiseComplete()
328 … setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_ORIGIN); in GetOriginUsageOrQuotaComplete()
359 setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_ORIGIN); in GetOriginUsageOrQuotaPromiseComplete()
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
Dnapi_util.h71 napi_value CreateError(napi_env env, int code, const std::string& msg);
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.h78 static napi_value CreateError(napi_env env, int32_t err, const std::string &msg);
Dnapi_util.cpp707 napi_value NapiUtil::CreateError(napi_env env, int32_t err, const std::string &msg) in CreateError() function in OHOS::Telephony::NapiUtil
721 napi_value error = CreateError(env, errorCode, message); in ThrowError()
/base/web/webview/interfaces/kits/napi/webdatabase/
Dnapi_geolocation_permission.cpp179 setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, param->errCode); in GetPermissionStateComplete()
207 setResult[PARAMZERO] = NWebError::BusinessError::CreateError(env, param->errCode); in GetPermissionStatePromiseComplete()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_util.cpp851 napi_value NapiHiSysEventUtil::CreateError(napi_env env, int32_t code, const std::string& msg) in CreateHiSysEventInfoJsObject() function in OHOS::HiviewDFX::NapiHiSysEventUtil
923 return CreateError(env, detail.first, detail.second); in CreateHiSysEventInfoJsObject()
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
Dadmin_manager_addon.cpp340 result[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeGetEnterpriseInfoComplete()