/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); 32 … napi_throw((env), CreateError((env), (EdmReturnErrCode::PARAM_ERROR), (message))); \
|
/base/customization/enterprise_device_management/interfaces/kits/common/src/ |
D | napi_edm_error.cpp | 59 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
|
D | napi_edm_common.cpp | 134 … 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/ |
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_javascript_execute_callback.cpp | 104 setResult[INTEGER_ZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbAsync() 125 … setResult[INTEGER_ZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbPromise()
|
D | webview_controller.cpp | 213 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/ |
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/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/ |
D | napi_hisysevent_util.h | 66 static napi_value CreateError(napi_env env, const int32_t code, const std::string& msg);
|
/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/hiappevent/frameworks/js/napi/include/ |
D | napi_util.h | 71 napi_value CreateError(napi_env env, int code, const std::string& msg);
|
/base/telephony/core_service/frameworks/js/napi/ |
D | napi_util.h | 78 static napi_value CreateError(napi_env env, int32_t err, const std::string &msg);
|
D | napi_util.cpp | 707 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/ |
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/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
D | napi_hisysevent_util.cpp | 851 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/ |
D | admin_manager_addon.cpp | 340 result[ARR_INDEX_ZERO] = CreateError(env, asyncCallbackInfo->ret); in NativeGetEnterpriseInfoComplete()
|