| /base/customization/enterprise_device_management/interfaces/kits/common/include/ |
| D | napi_edm_error.h | 26 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/ |
| D | napi_edm_error.cpp | 41 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
|
| D | napi_edm_common.cpp | 368 … 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/ |
| D | business_error.h | 31 static napi_value CreateError(napi_env env, int32_t err);
|
| D | business_error.cpp | 22 napi_value BusinessError::CreateError(napi_env env, int32_t err) in CreateError() function in OHOS::NWebError::BusinessError
|
| /base/web/webview/interfaces/kits/napi/webviewcontroller/ |
| D | webview_controller.cpp | 241 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()
|
| D | webview_javascript_execute_callback.cpp | 146 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/ |
| D | napi_hiappevent_write.cpp | 53 NapiUtil::CreateError(env, errMap.at(result).first, errMap.at(result).second); in BuildErrorByResult()
|
| D | napi_util.cpp | 442 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/ |
| D | bundle_manager_addon.cpp | 179 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/ |
| D | napi_web_storage.cpp | 175 …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/ |
| D | napi_hisysevent_util.h | 67 static napi_value CreateError(napi_env env, const int32_t code, const std::string& msg);
|
| /base/telephony/core_service/frameworks/js/napi/ |
| D | napi_util.h | 81 static napi_value CreateError(napi_env env, int32_t err, const std::string &msg);
|
| D | napi_util.cpp | 755 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/ |
| D | napi_util.h | 71 napi_value CreateError(napi_env env, int code, const std::string& msg);
|
| /base/web/webview/interfaces/kits/napi/webdatabase/ |
| D | napi_geolocation_permission.cpp | 179 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/ |
| D | network_manager_addon.cpp | 732 … 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/ |
| D | napi_hisysevent_util.cpp | 878 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/ |
| D | admin_manager_addon.cpp | 322 result[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeGetEnterpriseInfoComplete()
|