This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Internal error.
Description
This error code is reported when an error occurs during internal processing, such as multi-thread processing or internal pointer checks.
Possible Causes
Common kernel errors such as multi-thread processing and internal processing errors occur.
Solution
Make sure the system resources are sufficient.
Error Message
Marshalling or unmarshalling error.
Description
This error code is reported when a marshalling or unmarshalling error occurs before data transmission.
Possible Causes
A parameter mismatch is detected between the application and the notification service.
Solution
Make sure the application SDK version matches the system version.
Error Message
Failed to connect to the service.
Description
This error code is reported when the application fails to connect to the notification service.
Possible Causes
The notification service is busy or abnormal.
Solution
Wait for a while and try again, or check the running status of the notification service and restart it if necessary.
Error Message
Notification disabled.
Description
This error code is reported when notification is disabled.
Possible Causes
The notification switch is not enabled for the application.
Solution
Enable the application notification switch in notification settings.
Error Message
Notification slot disabled.
Description
When the notification slot is disabled, the method returns this error code.
Possible Causes
The notification slot is disabled or has not been added.
Solution
In notification settings, check whether the application has a slot of this type. If not, add one.
In notification settings, check the status of the notification slot of this type for the application and keep it enabled.
Error Message
The notification does not exist.
Description
This error code is reported when the notification service could not find the notification.
Possible Causes
The notification has been canceled or deleted.
Solution
None.
Error Message
The user does not exist.
Description
This error code is reported when the specified user is not found in the information system.
Possible Causes
The user information passed is incorrect.
Solution
Verify that the user information passed in is correct.
Error Message
The notification sending frequency reaches the upper limit.
Description
This error code is reported when the notification sending frequency reaches the upper limit.
Possible Causes
More than 10 notifications are sent per second, or more than 20 notifications are updated per second.
Solution
Reduce the notification sending frequency to no more than 10 per second.
Error Message
Distributed operation failed.
Description
This error code is reported when an error occurs with the distributed database operation or distributed API invoking.
Possible Causes
The distributed database could not be operated or the distributed API could not be invoked.
Solution
Verify the distributed connection.
Error Message
No memory space.
Description
This error code is returned if a memory allocation error occurs due to insufficient memory space.
Possible Causes
The memory space is insufficient.
A memory allocation error occurs.
Solution
Ensure sufficient system memory.
Error Message
A notification dialog box is already displayed.
Description
This error code is reported when the notification dialog box is displayed.
Possible Causes
The notification dialog box is displayed.
Solution
Check whether the notification dialog box is displayed.
Error Message
The current notification status does not support duplicate configurations.
Description
This error code is reported when the current notification status does not support duplicate configurations.
Possible Causes
The current notification status does not support duplicate configurations.
Solution
Check whether the notification status is duplicately configured.
Error Message
The notification version for this update is too low.
Description
This error code is reported when the notification version for this update is outdated.
Possible Causes
The notification version for this update is outdated.
Solution
Check the notification version.
Error Message
The notification settings window is already displayed.
Description
If the notification settings page has already been launched, the method returns this error code.
Possible Causes
The notification settings page has been displayed.
Solution
Check whether the notification settings page is displayed.
Error Message
The application is not allowed to send notifications due to permission settings.
Description
This error code is reported when an application under the permission control list publishes a notification.
Possible Causes
The application is restricted by the enterprise-customized devices.
Solution
The application is under permission control of Enterprise Device Manager and it cannot exit the permission control list automatically.
Error Message
The application does not implement the NotificationSubscriberExtensionAbility.
Description
This error code is returned when the application does not implement NotificationSubscriberExtensionAbility.
Possible Causes
The NotificationSubscriberExtensionAbility is not set or is incorrectly set for the application.
Solution
Create a NotificationSubscriberExtensionAbility for the application. For details about how to configure the extension ability, see NotificationSubscriberExtensionAbility in ExtensionAbility Component.
Error Message
The system failed to find the ExtensionAbility instance for the custom Live View widget template.
Description
When the application publishes a third-party live view notification, the system fails to find the ExtensionAbility instance for the custom extension area, and the API returns this error code.
Possible Causes
The application does not configure or incorrectly configures the ExtensionAbility for the custom extension area of the live view widget.
Solution
Check whether the application correctly configures the ExtensionAbility for the custom extension area of the live view widget.