Home
last modified time | relevance | path

Searched refs:CreateError (Results 1 – 19 of 19) 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);
33 … napi_throw((env), CreateError((env), (EdmReturnErrCode::PARAM_ERROR), (message))); \
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_error.cpp41 napi_value CreateError(napi_env env, ErrCode errorCode) in CreateError() function
44 return CreateError(env, pair.first, pair.second); in CreateError()
54 return CreateError(env, pair.first, pair.second); in CreateErrorWithInnerCode()
57 napi_value CreateError(napi_env env, int32_t errorCode, const std::string &errMessage) in CreateError() function
Dnapi_edm_common.cpp368 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeVoidCallbackComplete()
380 error = CreateError(env, asyncCallbackInfo->ret); in NativeVoidCallbackComplete()
429 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeBoolCallbackComplete()
441 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeBoolCallbackComplete()
469 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeNumberCallbackComplete()
481 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeNumberCallbackComplete()
510 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeStringCallbackComplete()
528 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeStringCallbackComplete()
560 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeArrayStringCallbackComplete()
572 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeArrayStringCallbackComplete()
/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_controller.cpp241 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INIT_ERROR); in StoreWebArchiveCallback()
270 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in StoreWebArchiveCallback()
295 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in StoreWebArchivePromise()
316 … 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()
Dwebview_javascript_execute_callback.cpp146 setResult[INTEGER_ZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbAsync()
190 … setResult[INTEGER_ZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbPromise()
/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/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/
Dbundle_manager_addon.cpp179 CreateError(env, asyncCallbackInfo->ret, asyncCallbackInfo->errMessage)); in NativeUninstallCallbackComplete()
181 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeUninstallCallbackComplete()
189 error = CreateError(env, asyncCallbackInfo->ret, asyncCallbackInfo->errMessage); in NativeUninstallCallbackComplete()
191 error = CreateError(env, asyncCallbackInfo->ret); in NativeUninstallCallbackComplete()
/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/hisysevent/interfaces/js/kits/napi/include/
Dnapi_hisysevent_util.h67 static napi_value CreateError(napi_env env, const int32_t code, const std::string& msg);
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.h81 static napi_value CreateError(napi_env env, int32_t err, const std::string &msg);
Dnapi_util.cpp755 napi_value NapiUtil::CreateError(napi_env env, int32_t err, const std::string &msg) in CreateError() function in OHOS::Telephony::NapiUtil
769 napi_value error = CreateError(env, errorCode, message); in ThrowError()
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
Dnapi_util.h71 napi_value CreateError(napi_env env, int code, const std::string& msg);
/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/customization/enterprise_device_management/interfaces/kits/network_manager/src/
Dnetwork_manager_addon.cpp732 … napi_reject_deferred(env, asyncCallbackInfo->deferred, CreateError(env, asyncCallbackInfo->ret)); in NativeHttpProxyCallbackComplete()
740 callbackValue[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeHttpProxyCallbackComplete()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_util.cpp878 napi_value NapiHiSysEventUtil::CreateError(napi_env env, int32_t code, const std::string& msg) in CreateHiSysEventInfoJsObject() function in OHOS::HiviewDFX::NapiHiSysEventUtil
956 return CreateError(env, detail.first, detail.second); in CreateHiSysEventInfoJsObject()
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
Dadmin_manager_addon.cpp322 result[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeGetEnterpriseInfoComplete()