This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
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.
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.
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.
Message
The string length exceeds the threshold.
Description
The string length exceeds the threshold.
Possible causes
The hoverTips string configured in StatusBarItem contains 0 or more than 128 characters.
When the updateStatusBarHoverTips API is called, the passed string contains 0 or more than 128 characters.
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.
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.
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.
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
All menu categories are obtained without adding any menu category.
When the API for updating a category is called, the passed category ID is incorrect, and no corresponding menu category can be found.
When the API for deleting a category is called, the passed category ID is incorrect, and no corresponding menu category can be found.
When the API for obtaining all tasks in a category is called, the passed category ID is incorrect, and no corresponding menu category can be found.
When the API for adding a task is called, the passed category ID is incorrect, and no corresponding menu category can be found.
Solution
Reset the existing category ID or submit a ticket online. Huawei will get back to you as soon as possible.
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.
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.
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.
Message
The string length exceeds the threshold.
Description
The length of the passed string exceeds the threshold.
Possible causes
When the addCustomCategory API is called, the passed string contains more than 512 characters or is empty.
When the updateCustomCategory API is called, the passed string contains more than 512 characters or is empty.
When the addQuickTask API is called, the passed string contains more than 512 characters or is empty.
When the updateQuickTask API is called, the passed string contains more than 512 characters or is empty.
Solution
Reset the string or submit a ticket online. Huawei will get back to you as soon as possible.
Message
Invalid parameter.
Description
Invalid input parameter.
Possible causes
When the addQuickTask API is called, the number of elements in the passed parameters array exceeds 64.
When the updateQuickTask API is called, the number of elements in the passed parameters array exceeds 64.
When the setProgressState API is called, the value of the passed state parameter is not within the value range of ProgressState.
When the setProgressValue API is called, the value of the passed completed parameter is less than 0, the value of total is less than or equal to 0, and the value of completed is greater than that of total.
Solution
Reset the parameter value or submit a ticket online. Huawei will get back to you as soon as possible.
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.
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.