Home
last modified time | relevance | path

Searched refs:Throw (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Djs_context_utils.cpp161 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateModuleContext()
185 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_NOT_SYSTEM_APP); in OnCreateModuleContext()
194 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateModuleContext()
206 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in CreateJsModuleContext()
212 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in CreateJsModuleContext()
242 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateSystemHspModuleResourceManager()
263 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_NOT_SYSTEM_HSP); in OnCreateSystemHspModuleResourceManager()
268 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateSystemHspModuleResourceManager()
285 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateModuleResourceManager()
303 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_NOT_SYSTEM_APP); in OnCreateModuleResourceManager()
[all …]
H A Djs_application_context_utils.cpp65 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_NOT_SYSTEM_APP); in OnCreateBundleContext()
76 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateBundleContext()
88 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateBundleContext()
95 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateBundleContext()
101 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateBundleContext()
176 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); in OnCreateModuleContext()
199 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_NOT_SYSTEM_APP); in OnCreateModuleContext()
277 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_NOT_SYSTEM_HSP); in OnCreateSystemHspModuleResourceManager()
317 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_NOT_SYSTEM_APP); in OnCreateModuleResourceManager()
561 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_RESTART_APP_FREQUENT); in OnRestartApp()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_string.cpp233 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in GetSubSpanString()
256 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in GetSpans()
948 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in ReplaceString()
965 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in InsertString()
975 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s start: %d StyledStringLength: %d", in InsertString()
1071 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in ReplaceSpan()
1118 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in AddSpan()
1194 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Failed To Parse StyledString"); in ReplaceSpanString()
1220 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Failed To Parse StyledString"); in InsertSpanString()
1230 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s start: %d StyledStringLength: %d", in InsertSpanString()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_scroller.cpp203 … JSException::Throw(ERROR_CODE_NAMED_ROUTE_ERROR, "%s", "Controller not bound to component."); in Fling()
208 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "The parameter check failed."); in Fling()
352 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in GetItemRect()
362 … JSException::Throw(ERROR_CODE_NAMED_ROUTE_ERROR, "%s", "Controller not bound to component."); in GetItemRect()
369 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter length failed."); in GetItemIndex()
377 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in GetItemIndex()
382 … JSException::Throw(ERROR_CODE_NAMED_ROUTE_ERROR, "%s", "Controller not bound to component."); in GetItemIndex()
H A Djs_list.cpp925 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in GetItemRectInGroup()
942 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter length failed."); in GetVisibleListContentInfo()
950 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in GetVisibleListContentInfo()
998 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in ScrollToItemInGroup()
1009 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in ScrollToItemInGroup()
1018 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in ScrollToItemInGroup()
1028 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in ScrollToItemInGroup()
1036 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter check failed."); in ScrollToItemInGroup()
1048 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "too many parameters."); in CloseAllSwipeActions()
1054 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "options param must be object."); in CloseAllSwipeActions()
[all …]
H A Djs_data_change_listener.h163 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in OnDatasetChange()
271 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in useAnotherInterface()
H A Djs_view.cpp313 JSException::Throw("%s", "JSView FindChildById with invalid arguments."); in FindChildById()
362 JSException::Throw("%s", "View derived classes must provide render(){...} function"); in ConstructorCallback()
383 JSException::Throw("%s", "JSView creation with invalid arguments."); in ConstructorCallback()
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/error_utils/src/
H A Dability_runtime_error_util.cpp155 bool AbilityRuntimeErrorUtil::Throw(napi_env env, int32_t errCode, const std::string &errMessage) in Throw() function in OHOS::AbilityRuntime::AbilityRuntimeErrorUtil
177 return Throw(env, ERROR_CODE_MAP.at(errCode)); in ThrowByInternalErrCode()
/ohos5.0/docs/en/application-dev/security/DataProtectionKit/
H A Ddlp-guidelines.md191 …console.error('error', (err as BusinessError).code, (err as BusinessError).message); // Throw an e…
209 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
216 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
238 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
253 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
267 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
281 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
296 …'error', (err as BusinessError).code, (err as BusinessError).message); // Throw an error if the op…
333 …console.error('error', (err as BusinessError).code, (err as BusinessError).message); // Throw an e…
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-error.md230 // Throw an error with an error message.
236 // Pass in two parameters. Throw an error when the second parameter, that is, the divisor, is 0.
289 // Throw a type error with an error message.
295 // Pass in a parameter of incorrect type. Throw a type error when the parameter type is found incor…
305 // Throw a type error if the input parameter is not of the napi_number type.
307 // Throw a type error with both errorCode and errorMessage.
348 // Throw a range error with an error message.
363 // Throw a range error.
464 // Throw an error.
H A Duse-jsvm-error.md112 // Throw an error if no parameter is passed in.
161 // Throw an error if no parameter is passed in.
213 // Throw a RangeError.
472 // Throw an error.
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_offscreen_canvas.cpp40 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in DetachOffscreenCanvas()
45 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in DetachOffscreenCanvas()
213 …JSException::Throw("%s", "Failed to execute 'transferToImageBitmap' on 'OffscreenCanvas': Cannot t… in JsTransferToImageBitmap()
226 JSException::Throw( in JsGetContext()
H A Djs_rendering_context.cpp524 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter error."); in JsOn()
563 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "Input parameter error."); in JsOff()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A Djs_types.cpp54 JSException::Throw(ERROR_CODE_COMPONENT_NOT_SUPPORTED_PREVENT_FUNCTION, "%s", in JsClickPreventDefault()
71 JSException::Throw(ERROR_CODE_COMPONENT_NOT_SUPPORTED_PREVENT_FUNCTION, "%s", in JsTouchPreventDefault()
/ohos5.0/foundation/ability/form_fwk/frameworks/js/napi/formUtil/
H A Dnapi_form_util.cpp118 bool NapiFormUtil::Throw(napi_env env, int32_t errCode, const std::string &errMessage) in Throw() function in OHOS::AbilityRuntime::NapiFormUtil
130 return Throw(env, externalErrorCode, externalErrorMessage); in ThrowByInternalErrorCode()
136 return Throw(env, externalErrorCode, externalErrorMessage); in ThrowByExternalErrorCode()
155 … return Throw(env, ERR_FORM_EXTERNAL_PARAM_INVALID, CreateParamTypeErrorMessage(paramName, type)); in ThrowParamTypeError()
161 return Throw(env, ERR_FORM_EXTERNAL_PARAM_INVALID, errorMessage); in ThrowParamNumError()
167 return Throw(env, ERR_FORM_EXTERNAL_PARAM_INVALID, errorMessage); in ThrowParamError()
H A Dnapi_form_util.h93 static bool Throw(napi_env env, int32_t errCode, const std::string &errMessage);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_view_register.cpp674 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "container is nullptr"); in JsGetFilteredInspectorTree()
679 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid param count"); in JsGetFilteredInspectorTree()
687 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid param type"); in JsGetFilteredInspectorTree()
711 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "get inspector tree failed"); in JsGetFilteredInspectorTree()
722 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "container is nullptr"); in JsGetFilteredInspectorTreeById()
728 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid param count"); in JsGetFilteredInspectorTreeById()
736 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid param type"); in JsGetFilteredInspectorTreeById()
745 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid param type"); in JsGetFilteredInspectorTreeById()
750 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid filter depth"); in JsGetFilteredInspectorTreeById()
759 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", "invalid param type"); in JsGetFilteredInspectorTreeById()
[all …]
H A Djsi_types.h346 static void Throw(const char* format, Args... args);
348 static void Throw(int32_t code, const char* format, Args... args);
H A Djsi_types.inl243 void JsiException::Throw(const char* format, Args... args) function in OHOS::Ace::Framework::JsiException
252 void JsiException::Throw(int32_t code, const char* format, Args... args) function in OHOS::Ace::Framework::JsiException
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/error_utils/include/
H A Dability_runtime_error_util.h101 static bool Throw(napi_env env, int32_t errCode, const std::string &errMessage = "");
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ability_runtime_error_util_test/
H A Dability_runtime_error_util_test.cpp144 bool result = AbilityRuntimeErrorUtil::Throw(env_, 1, errMessage);
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app_startup/startup_manager/
H A Djs_startup_manager.cpp77 AbilityRuntimeErrorUtil::Throw(env, result, StartupUtils::GetErrorMessage(result)); in OnRun()
99 AbilityRuntimeErrorUtil::Throw(env, result, StartupUtils::GetErrorMessage(result)); in OnRun()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/application/
H A Djs_application.cpp54 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INTERNAL_ERROR); in OnGetApplicationContext()
60 AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INTERNAL_ERROR); in OnGetApplicationContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/quick_fix/
H A Djs_quick_fix_manager.cpp61 static void Throw(napi_env env, int32_t errCode) in Throw() function in OHOS::AbilityRuntime::JsQuickFixManager
/ohos5.0/docs/en/application-dev/security/DeviceCertificateKit/
H A Dcreate-verify-cerchainvalidator-object.md105 // Throw an error as required.

12