/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | js_context_utils.cpp | 161 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 D | js_application_context_utils.cpp | 65 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 D | js_span_string.cpp | 233 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 D | js_scroller.cpp | 203 … 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 D | js_list.cpp | 925 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 D | js_data_change_listener.h | 163 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in OnDatasetChange() 271 JSException::Throw(ERROR_CODE_PARAM_INVALID, "%s", in useAnotherInterface()
|
H A D | js_view.cpp | 313 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 D | ability_runtime_error_util.cpp | 155 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 D | dlp-guidelines.md | 191 …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 D | use-napi-about-error.md | 230 // 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 D | use-jsvm-error.md | 112 // 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 D | js_offscreen_canvas.cpp | 40 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 D | js_rendering_context.cpp | 524 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 D | js_types.cpp | 54 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 D | napi_form_util.cpp | 118 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 D | napi_form_util.h | 93 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 D | jsi_view_register.cpp | 674 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 D | jsi_types.h | 346 static void Throw(const char* format, Args... args); 348 static void Throw(int32_t code, const char* format, Args... args);
|
H A D | jsi_types.inl | 243 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 D | ability_runtime_error_util.h | 101 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 D | ability_runtime_error_util_test.cpp | 144 bool result = AbilityRuntimeErrorUtil::Throw(env_, 1, errMessage);
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app_startup/startup_manager/ |
H A D | js_startup_manager.cpp | 77 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 D | js_application.cpp | 54 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 D | js_quick_fix_manager.cpp | 61 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 D | create-verify-cerchainvalidator-object.md | 105 // Throw an error as required.
|