This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The FrameNode is not modifiable.
Description
This error code is reported when the current FrameNode is unmodifiable, preventing the requested operation, for example, setting properties, adding or removing child nodes, or binding controllers.
Possible Causes
An attempt is made to modify a declarative node.
Solution
Avoid performing modification operations on a non-modifiable node. You can use try-catch to catch and handle the error to avoid affecting other logic.
Error Message
The FrameNode cannot be set whether to support cross-language common attribute setting.
Description
This error code is reported when the component type of the current FrameNode does not support adjusting the cross-language common attribute configuration permission.
Possible Causes
You attempt to adjust the cross-language common attribute configuration permission of the target FrameNode.
Solution
Avoid calling setCrossLanguageOptions to adjust the cross-language access permission on a FrameNode that does not support setting cross-ArkTS language access options. You can refer to the description of setCrossLanguageOptions to check whether the target node type supports setting cross-ArkTS language access options.
Error Message
Parameter error. Possible causes: 1. The component type of the node is incorrect. 2. The node is null or undefined. 3. The controller is null or undefined.
Description
This error code is reported when the parameters passed to the API are incorrect.
Possible Causes
Solution
Confirm that the component type of the passed node parameter is correct, and check whether the node parameter or controller parameter is null or undefined before calling the API.
Error Message
The current FrameNode and the target FrameNode do not have a common ancestor node.
Description
This error code is reported when the current node and the target node have no common ancestor node.
Possible Causes
No common ancestor node can be found between the current node and the target node.
Solution
Pass in a target node that has a common ancestor node with the current node.
Error Message
The parameter is invalid. Details about the invalid parameter and the reason are included in the error message. For example: "The parameter 'targetNode' is invalid: it cannot be disposed."
Description
This error code is reported when the parameter is invalid. The error message contains detailed information about the invalid parameter and its cause. For example: "The parameter 'targetNode' is invalid: the node specified by the parameter cannot be a destroyed node."
Possible Causes
The value of the passed parameter is null, undefined, or another invalid value. For the specific cause, see the error message.
Solution
Error Message
The current FrameNode has been disposed.
Description
This error code is reported when the instance object used to call the API has been unbound from the backend entity node.
Possible Causes
Before calling the current API, you call the dispose API on this instance object, for example, item.dispose().
Solution
Error Message
The current node has been adopted.
Description
This error code is reported when the current node has been adopted as a child node and does not support the requested operation.
Possible Causes
The current node has been adopted as a child node and does not support the requested operation.
Solution
Cancel the state in which the current node is adopted as a child node, and then perform the current operation.
Error Message
The current FrameNode is not on the main tree.
Description
The current node is not on the main node tree.
Possible Causes
The current node is not on the main node tree.
Solution
Mount the current node to the main node tree before performing the operation.
Error Message
Reuse/Recycle not implemented for ViewV2, yet.
Description
This error code is reported when state management V2 does not support reuse yet in the BuilderNode.
Possible Causes
In the BuilderNode, state management V2 does not support component reuse yet.
Solution
When using state management V2, do not use component reuse-related features on the BuilderNode. Since API version 26.0.0, custom components in the BuilderNode support V2 component reuse.
Error Message
The corresponding operation does not support nodes created by ArkTS.
Description
This error code is reported when the operation does not support nodes created by ArkTS.
Possible Causes
The current operation is incompatible with nodes created by ArkTS.
Solution
Pass nodes not created by ArkTS.
Error Message
The node not mounted to component tree.
Description
This error code is reported when the passed node is not mounted to the component tree.
Possible Causes
The passed node is not mounted to the component tree when the API is called.
Solution
Adjust the API call timing to ensure the node is mounted to the component tree.
Error Message
Operations on the provided node are not supported on non-UI threads.
Description
This error code is reported when an attempt is made to manipulate nodes on a non-UI thread.
Possible Causes
Solution