• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Notification Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).
6
7## 1600001 Internal Error
8
9**Error Message**
10
11Internal error.
12
13**Description**
14
15This error code is reported when an error occurs during internal processing, such as multi-thread processing or internal pointer checks.
16
17**Cause**
18
19Common kernel errors such as multi-thread processing and internal processing errors occur.
20
21**Solution**
22
23Make sure the system resources are sufficient.
24
25## 1600002 Marshalling or Unmarshalling Error
26
27**Error Message**
28
29marshalling or unmarshalling error.
30
31**Description**
32
33This error code is reported when a marshalling or unmarshalling error occurs before data transmission.
34
35**Cause**
36
37A parameter mismatch is detected between the application and the notification service.
38
39**Solution**
40
41Make sure the application SDK version matches the system version.
42
43## 1600003 Failed to Connect to the Notification Service
44
45**Error Message**
46
47Failed to connect service.
48
49**Description**
50
51This error code is reported when the application fails to connect to the notification service.
52
53**Cause**
54
55The notification service is busy or abnormal.
56
57**Solution**
58
59Restart the system.
60
61## 1600004 Notification Disabled
62
63**Error Message**
64
65Notification is not enabled.
66
67**Description**
68
69This error code is reported when notification is disabled.
70
71**Cause**
72
73The notification feature is not enabled for the application.
74
75**Solution**
76
77Enable notification for the application in the notification settings.
78
79## 1600005 Notification Slot Disabled
80
81**Error Message**
82
83Notification slot is not enabled.
84
85**Description**
86
87This error code is reported when the notification slot is not available.
88
89**Cause**
90
91The notification slot is disabled or has not been added.
92
93**Solution**
94
951. Access the notification settings and check whether the application has the notification slot. If no, add it.
96
972. Make sure the notification slot is enabled.
98
99## 1600006 Notification Deletion Failed
100
101**Error Message**
102
103Notification is not allowed to remove.
104
105**Description**
106
107This error code is reported when notification deletion is disabled.
108
109**Cause**
110
111The notification attribute **isUnremovable** is set to true.
112
113**Solution**
114
115Set **isUnremovable** as needed. For details, see [NotificationRequest](../apis/js-apis-notificationManager.md#notificationrequest).
116
117## 1600007 Notification Not Found
118
119**Error Message**
120
121The notification is not exist.
122
123**Description**
124
125This error code is reported when the notification service could not find the notification.
126
127**Cause**
128
129The notification has been canceled or deleted.
130
131**Solution**
132
133N/A
134
135## 1600008 User Not Found
136
137**Error Message**
138
139The user is not exist.
140
141**Description**
142
143This error code is reported when the specified user is not found in the information system.
144
145**Cause**
146
147The user information passed is incorrect.
148
149**Solution**
150
151Verify the user information.
152
153## 1600009 Notification Sending Limit Reached
154
155**Error Message**
156
157Over max number notifications per second.
158
159**Description**
160
161This error code is reported when the notification sending frequency reaches the upper limit.
162
163**Cause**
164
165More than 10 notifications are sent per second.
166
167**Solution**
168
169Reduce the notification sending frequency to no more than 10 per second.
170
171## 16000010 Distributed Operation Failed
172
173**Error Message**
174
175Distributed operation failed.
176
177**Description**
178
179This error code is reported when an error occurs with the distributed database operation or distributed API invoking.
180
181**Cause**
182
183The distributed database could not be operated or the distributed API could not be invoked.
184
185**Solution**
186
187Verify the distributed connection.
188
189## 16000011 Failed to Read the Template Configuration
190
191**Error Message**
192
193Read template config failed.
194
195**Description**
196
197This error code is reported when the attempt to read the template configuration file fails.
198
199**Cause**
200
201The template configuration file is lost in the system.
202
203**Solution**
204
205Check for the template configuration file: /system/etc/notification_template/external.json.
206
207## 16000012 Insufficient Memory Space
208
209**Error Message**
210
211No memory space.
212
213**Description**
214
215This error code is reported when a memory allocation error occurs.
216
217**Cause**
218
219A memory allocation error occurs.
220
221**Solution**
222
223Ensure sufficient system memory.
224