/foundation/arkui/ui_appearance/interfaces/kits/napi/src/ |
H A D | js_ui_appearance.cpp | 39 void NapiThrow(napi_env env, const std::string& message, int32_t errCode) in NapiThrow() function 62 NapiThrow(env, "asyncContext is null.", UiAppearanceAbilityInterface::ErrCode::SYS_ERR); in OnExecute() 81 NapiThrow(env, "asyncContext is null.", UiAppearanceAbilityInterface::ErrCode::SYS_ERR); in OnSetFontScale() 106 NapiThrow(env, "asyncContext is null.", UiAppearanceAbilityInterface::ErrCode::SYS_ERR); in OnSetFontWeightScale() 134 NapiThrow(env, "open handle scope failed.", UiAppearanceAbilityInterface::ErrCode::SYS_ERR); in OnComplete() 139 NapiThrow(env, "asyncContext is null.", UiAppearanceAbilityInterface::ErrCode::SYS_ERR); in OnComplete() 184 NapiThrow( in CheckArgs() 194 NapiThrow(env, "the second parameter must be a function.", in CheckArgs() 202 NapiThrow( in CheckArgs() 216 NapiThrow( in CheckFontScaleArgs() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/overlay/ |
H A D | js_overlay.cpp | 53 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSAddFrameNode() 66 NapiThrow(env, "the second paramter is not number.", ERROR_CODE_PARAM_INVALID); in JSAddFrameNode() 79 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSRemoveFrameNode() 92 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSShowNode() 105 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSHideNode() 116 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSShowAllFrameNodes() 127 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSHideAllFrameNodes()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/focus_controller/ |
H A D | js_focus_controller.cpp | 62 NapiThrow(env, "This component is not focusable.", ERROR_CODE_NON_FOCUSABLE); in JSRequestFocus() 65 NapiThrow(env, "This component has unfocusable ancestor.", ERROR_CODE_NON_FOCUSABLE_ANCESTOR); in JSRequestFocus() 68 NapiThrow(env, in JSRequestFocus() 73 NapiThrow(env, "An internal error occurred.", ERROR_CODE_INTERNAL_ERROR); in JSRequestFocus()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/router/ |
H A D | js_router.cpp | 222 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseParamWithCallback() 231 NapiThrow(env, "The type of the url parameter is not string.", ERROR_CODE_PARAM_INVALID); in ParseParamWithCallback() 244 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseParamWithCallback() 251 NapiThrow(env, "The largest number of parameters is 2 in Promise.", ERROR_CODE_PARAM_INVALID); in ParseParamWithCallback() 316 NapiThrow( in CommonRouterWithCallbackProcess() 320 NapiThrow(env, "The largest number of parameters is 3.", ERROR_CODE_PARAM_INVALID); in CommonRouterWithCallbackProcess() 349 NapiThrow(context->env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSRouterPushWithCallback() 369 NapiThrow(context->env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSRouterReplaceWithCallback() 388 NapiThrow(context->env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSPushNamedRoute() 402 NapiThrow(contex in JSReplaceNamedRoute() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/animator/ |
H A D | js_animator.cpp | 34 NapiThrow(env, "Required input parameters are missing.", ERROR_CODE_PARAM_INVALID); in ParseString() 37 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseString() 59 NapiThrow(env, "Required input parameters are missing.", ERROR_CODE_PARAM_INVALID); in ParseInt() 62 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseInt() 75 NapiThrow(env, "Required input parameters are missing.", ERROR_CODE_PARAM_INVALID); in ParseDouble() 78 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseDouble() 159 NapiThrow(env, "The number of parameters must be equal to 1.", ERROR_CODE_PARAM_INVALID); in ParseAnimatorOption() 182 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseAnimatorOption() 241 NapiThrow(env, "Internal error. Unwrap animator result is failed.", ERROR_CODE_INTERNAL_ERROR); in JSReset() 246 NapiThrow(en in JSReset() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/component_snapshot/ |
H A D | js_component_snapshot.cpp | 115 NapiThrow(env_, errorMsg, ERROR_CODE_PARAM_INVALID); in CheckArgs() 122 NapiThrow(env_, errorMsg, ERROR_CODE_PARAM_INVALID); in CheckArgs() 130 NapiThrow(env_, errorMsg, ERROR_CODE_PARAM_INVALID); in CheckArgs() 374 NapiThrow(env, "Delegate is null", ERROR_CODE_INTERNAL_ERROR); in JSSnapshotGetSync() 392 NapiThrow(env, "Internal error!", ERROR_CODE_INTERNAL_ERROR); in JSSnapshotGetSync() 396 NapiThrow(env, "ComponentSnapshot timeout!", ERROR_CODE_COMPONENT_SNAPSHOT_TIMEOUT); in JSSnapshotGetSync()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/ |
H A D | js_drag_controller.cpp | 207 NapiThrow(env, "Check param failed", ERROR_CODE_PARAM_INVALID); in On() 213 NapiThrow(env, "convert drag action failed.", ERROR_CODE_PARAM_INVALID); in On() 219 NapiThrow(env, "get js callback function error.", ERROR_CODE_PARAM_INVALID); in On() 251 NapiThrow(env, "Check param failed", ERROR_CODE_PARAM_INVALID); in Off() 277 NapiThrow(env, "convert drag action failed.", ERROR_CODE_INTERNAL_ERROR); in StartDrag() 282 NapiThrow(env, "drag action must be recreated for each dragging", ERROR_CODE_INTERNAL_ERROR); in StartDrag() 289 NapiThrow(env, "ace engine delegate is null", ERROR_CODE_INTERNAL_ERROR); in StartDrag() 371 NapiThrow(dragCtx->env, "parameter parsing failed.", ERROR_CODE_PARAM_INVALID); in StartDragInternal() 574 NapiThrow(env, "parameter parsing error.", ERROR_CODE_PARAM_INVALID); in HandleExecuteDrag() 1068 NapiThrow(asyncCt in GetPixelMapByCustom() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/ |
H A D | prompt_action.cpp | 82 NapiThrow(env, "Can not parse resource info from input params.", ERROR_CODE_INTERNAL_ERROR); in GetToastMessage() 86 NapiThrow(env, "Can not get message from resource manager.", ERROR_CODE_INTERNAL_ERROR); in GetToastMessage() 93 NapiThrow(env, "The type of message is incorrect.", ERROR_CODE_PARAM_INVALID); in GetToastMessage() 110 NapiThrow(env, "Can not parse resource info from input params.", ERROR_CODE_INTERNAL_ERROR); in GetToastDuration() 114 NapiThrow(env, "Can not get message from resource manager.", ERROR_CODE_INTERNAL_ERROR); in GetToastDuration() 140 NapiThrow(env, "Can not parse resource info from input params.", ERROR_CODE_INTERNAL_ERROR); in GetToastBottom() 144 NapiThrow(env, "Can not get message from resource manager.", ERROR_CODE_INTERNAL_ERROR); in GetToastBottom() 418 NapiThrow(env, "Required input parameters are missing.", ERROR_CODE_PARAM_INVALID); in GetToastParams() 432 NapiThrow(env, "The type of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in GetToastParams() 458 NapiThrow(en in ShowToast() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/display_sync/ |
H A D | js_display_sync.cpp | 125 NapiThrow(env, "The number of parameters is incorrect.", ERROR_CODE_PARAM_INVALID); in ParseExpectedFrameRateRange() 131 NapiThrow(env, "The nativeObj is nullptr.", ERROR_CODE_PARAM_INVALID); in ParseExpectedFrameRateRange() 144 NapiThrow(env, "ExpectedFrameRateRange Error", ERROR_CODE_PARAM_INVALID); in ParseExpectedFrameRateRange()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/utils/ |
H A D | napi_utils.h | 66 void NapiThrow(napi_env env, const std::string& message, int32_t errCode);
|
H A D | napi_utils.cpp | 44 void NapiThrow(napi_env env, const std::string& message, int32_t errCode) in NapiThrow() function
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_drag_function.cpp | 36 void NapiThrow(const RefPtr<Framework::JsEngine>& engine, int32_t errCode, const std::string& message) in NapiThrow() function 222 NapiThrow(engine, errorInfo.first, errorInfo.second); in GetData()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/componentutils/ |
H A D | js_component_utils.cpp | 43 NapiThrow(env, "UI execution context not found.", ERROR_CODE_INTERNAL_ERROR); in JSGetRectangleById()
|
/foundation/ability/ability_runtime/frameworks/js/napi/wantagent/ |
H A D | napi_want_agent.cpp | 113 void NapiThrow(napi_env env, int32_t errCode) in NapiThrow() function
|