Home
last modified time | relevance | path

Searched refs:throwStatus (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/
H A Dnapi_business_error.cpp138 napi_status throwStatus = napi_ok; in ThrowErr() local
147 throwStatus = napi_throw_error(env, nullptr, msg.c_str()); in ThrowErr()
149 throwStatus = napi_throw(env, GenerateBusinessError(env, code, msg)); in ThrowErr()
152 if (throwStatus != napi_ok) { in ThrowErr()
153 …APP_LOGE("Failed to throw an exception, code = %{public}d, msg = %{public}s", throwStatus, msg.c_s… in ThrowErr()
164 napi_status throwStatus = in ThrowErr() local
166 if (throwStatus != napi_ok) { in ThrowErr()
168 throwStatus, in ThrowErr()
178 napi_status throwStatus = napi_throw_error(env, nullptr, errMsg.c_str()); in ThrowErr() local
179 if (throwStatus != napi_ok) { in ThrowErr()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/common/
H A Duni_error.cpp134 napi_status throwStatus = napi_ok; in ThrowErr() local
144 throwStatus = napi_throw_error(env, nullptr, msg.c_str()); in ThrowErr()
146 throwStatus = napi_throw(env, GenerateBusinessError(env, code, msg)); in ThrowErr()
149 if (throwStatus != napi_ok) { in ThrowErr()
150 … HILOGE("Failed to throw an exception, %{public}d, code = %{public}s", throwStatus, msg.c_str()); in ThrowErr()
161 … napi_status throwStatus = napi_throw(env, GenerateBusinessError(env, errCodeTable.at(code).first, in ThrowErr() local
163 if (throwStatus != napi_ok) { in ThrowErr()
164 HILOGE("Failed to throw an exception, %{public}d, code = %{public}s", throwStatus, in ThrowErr()
174 napi_status throwStatus = napi_throw_error(env, nullptr, errMsg.c_str()); in ThrowErr() local
175 if (throwStatus != napi_ok) { in ThrowErr()
[all …]
/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/src/
H A Dn_error.cpp164 napi_status throwStatus = napi_throw_error(env, nullptr, errMsg.c_str()); in ThrowErr() local
165 if (throwStatus != napi_ok) { in ThrowErr()
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dext_backup_js.cpp146 napi_status throwStatus = napi_fatal_exception(env, argv); in PromiseCatchCallback() local
147 if (throwStatus != napi_ok) { in PromiseCatchCallback()
148 HILOGE("Failed to throw an exception, %{public}d", throwStatus); in PromiseCatchCallback()
202 napi_status throwStatus = napi_fatal_exception(env, argv); in PromiseCatchCallbackEx() local
203 if (throwStatus != napi_ok) { in PromiseCatchCallbackEx()
204 HILOGE("Failed to throw an exception, %{public}d", throwStatus); in PromiseCatchCallbackEx()