Popup Window Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

103301 Dialog Content Error

Error Message

The ComponentContent is incorrect.

NOTE

When the called API is openCustomDialog, openCustomDialogWithController, closeCustomDialog, or updateCustomDialog, the returned error is "Dialog content error."The ComponentContent is incorrect.

Description

This error code is reported when there is an issue with the content node of the custom dialog box, which prevents the node from being rendered.

Possible Causes

The custom content node passed to the dialog box is empty or incorrect.

Solution

  1. Check whether the content node of the custom dialog box exists. You can do so using the getFrameNodeById() API.

  2. Ensure that the content node can be rendered properly.

103302 Custom Dialog Box Already Exists

Error Message

The ComponentContent already exists.

Description

This error code is reported when an attempt is made to open a custom dialog box that is already open.

Possible Causes

The custom dialog box associated with the content node is currently displayed.

Solution

Reinitialize and bind a content node that can be rendered properly to the dialog box.

103303 Custom Dialog Box Not Found

Error Message

The ComponentContent cannot be found.

NOTE

When the called API is closeCustomDialog or updateCustomDialog, the returned error is "Dialog content not found."The ComponentContent cannot be found.

Description

This error code is reported when an attempt is made to close or update a custom dialog box that is not open.

Possible Causes

The custom dialog box associated with the content node is not open.

Solution

  1. Ensure that the custom dialog box associated with the content node is open.

  2. Ensure that the content node of the custom dialog box is the target content node that needs to be updated or closed.

103304 Target ID Not Found

Error Message

The targetId does not exist.

Description

This error code is reported when no node can be found based on the provided targetId.

Possible Causes

The provided targetId is invalid, or the node corresponding to the targetId has been destroyed.

Solution

Check whether the node corresponding to the provided targetId exists. You can query the node using the getFrameNodeById() API.

103305 Node Not Mounted

Error Message

The node of targetId is not in the component tree.

Description

This error code is reported when the node corresponding to the provided targetId is not mounted in the component tree.

Possible Causes

The node with the specified targetId is not mounted in the component tree.

Solution

  1. Check whether the node corresponding to the provided targetId exists. You can query the node using the getFrameNodeById() API.

  2. Check whether the node corresponding to the provided targetId has been mounted to the main node tree. You can do so using the isAttached() API of the content node.

103307 Failed to Open the Overlay Due to a System Pop-up Window

Error Message

The overlay cannot be opened due to the system pop-up window.

Description

This error code is reported when the overlay cannot be opened due to a system pop-up window.

Possible Causes

A system pop-up window exists on the current page, blocking the display of the overlay.

Solution

Wait until the user closes the system pop-up window and try to open the overlay again.

103401 Toast Not Found

Error Message

Cannot find the toast.

Description

This error code is reported when an attempt is made to close a toast that is not being displayed.

Possible Causes

The toast has not been displayed or has already been closed.

Solution

Ensure that the toast is being displayed.