目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1010710001 Invalid Image Size

Message

The size of the pixelmap exceeds the limit.

Description

When the API for actions such as adding an icon is called, the size of the passed icon image does not meet the required specifications.

Possible causes

Unknown cause.

The current icon size is not strictly limited.

Solution

Replace the passed image or submit a ticket online. Huawei will get back to you as soon as possible.

1010710002 The Number of Menu Items Exceeding the Upper Limit

Message

The number of menu items or submenu items exceeds the limit.

Description

When the API for actions such as adding an icon is called, the number of passed menu items exceeds the upper limit.

Possible causes

Solution

Reset the level-1 and level-2 menu items or submit a ticket online. Huawei will get back to you as soon as possible.

1010710003 Too Frequent API Calls

Message

The API is being called too frequently.

Description

The API is called too frequently.

Possible causes

The interval for calling APIs such as addToStatusBar, removeFromStatusBar, updateStatusBarIcon, updateQuickOperationHeight, and updateStatusBarMenu is less than 20 ms.

Solution

Set a proper API calling interval or submit a ticket online. Huawei will get back to you as soon as possible.

1010710004 Cannot Remove Icon When No Window Is in the Foreground

Message

The icon cannot be deleted when no window is in the foreground.

Description

There is no app window in the foreground. The removeFromStatusBar API cannot be called to remove the status bar icon.

Possible causes

The removeFromStatusBar API is called after the app is switched to the background.

Solution

Set a proper API calling time or submit a ticket online. Huawei will get back to you as soon as possible.

1010710005 String Length Exceeding Threshold

Message

The string length exceeds the threshold.

Description

The string length exceeds the threshold.

Possible causes

Solution

Check whether the length of the passed string is within the value range. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1010710006 Menu Item Does Not Exist

Message

Menu item not found.

Description

Update a menu item that does not exist.

Possible causes

Solution

Check whether menuCode of the level-1 or level-2 menu item to be updated is the same as that of the existing menu item. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1010710007 menuCode of a Menu Item Is Not Unique

Message

The menuCode of the menu item is not unique.

Description

menuCode of the menu item is not unique.

Possible causes

Solution

Ensure that the menuCode value of each menu item is unique. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1010720001 The Passed Level-1 Menu Data Does Not Meet Requirements

Message

A menu item contains neither submenu nor menuAction.

Description

When the API for actions such as adding an icon or updating the menu item is called, the passed level-1 menu item data does not meet the requirements.

Possible causes

A passed level-1 menu item does not contain menuAction or subMenu.

Solution

Check the parameters of the passed level-1 menu item or submit a ticket online. Huawei will get back to you as soon as possible.

1020210001 Maximum Number of Categories Reached

Message

Maximum number of categories reached.

Description

The number of added categories exceeds the upper limit.

Possible causes

The maximum number of categories is 3. The number of added categories exceeds the upper limit.

Solution

Reset the number of menu categories or submit a ticket online. Huawei will get back to you as soon as possible.

1020210002 Duplicate Category Name

Message

Duplicate category name.

Description

The passed category name is the same as that of another category.

Possible causes

The category name passed to the API for adding or updating a category is the same as an existing category name.

Solution

Reset the category name or submit a ticket online. Huawei will get back to you as soon as possible.

1020210003 Category Not Found

Message

Category not found.

Description

When the API for obtaining, updating, or deleting a category is called, no corresponding menu category can be found.

Possible causes

Solution

Reset the existing category ID or submit a ticket online. Huawei will get back to you as soon as possible.

1020210004 Menu Task Not Found

Message

Quick task not found.

Description

When the API for obtaining, updating, or deleting a task is called, no corresponding menu task can be found.

Possible causes

Solution

Reset the existing task ID or submit a ticket online. Huawei will get back to you as soon as possible.

1020210005 Category Already Exists

Message

Group already exists.

Description

When the API for adding a category is called, the category already exists.

Possible causes

The category has been added and cannot be added again.

Solution

Check the category information or submit a ticket online. Huawei will get back to you as soon as possible.

1020210006 Category Not Found

Message

Group not found.

Description

When the API for deleting a category is called, the category is not found.

Possible causes

The category information does not exist.

Solution

Check the category information or submit a ticket online. Huawei will get back to you as soon as possible.

1020210007 Window Not Found

Message

Window not found.

Description

The window ID does not exist.

Possible causes

The window ID is incorrect.

Solution

Check the window ID or submit a ticket online. Huawei will get back to you as soon as possible.

1020210008 String Length Exceeding Threshold

Message

The string length exceeds the threshold.

Description

The length of the passed string exceeds the threshold.

Possible causes

Solution

Reset the string or submit a ticket online. Huawei will get back to you as soon as possible.

1020210009 Invalid Parameter

Message

Invalid parameter.

Description

Invalid input parameter.

Possible causes

Solution

Reset the parameter value or submit a ticket online. Huawei will get back to you as soon as possible.

1020210010 App Icon Not Found in the Quick Bar

Message

Quick bar icon not found.

Description

The app icon is not found in the quick bar.

Possible causes

The app icon is not displayed in the quick bar.

Solution

Call the API again after the app icon is displayed in the quick bar, or submit a ticket online. Huawei will get back to you as soon as possible.

1020210011 Too Frequent API Calls

Message

The API is called too frequently.

Description

APIs are frequently called within a short period of time.

Possible causes

The interval for calling APIs such as setQuickBarCombineIcon, setQuickBarLayeredIcon, setProgressState, setProgressValue, and isQuickBarCapabilitySupported is less than 20 ms.

Solution

Set a proper API calling interval or submit a ticket online. Huawei will get back to you as soon as possible.