1e41f4b71Sopenharmony_ci# Utils Error Codes
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci> **NOTE**
4e41f4b71Sopenharmony_ci>
5e41f4b71Sopenharmony_ci> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## 10200001 Value Out of Range
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Error Message**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciThe value of ${param} is out of range.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Description**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThe value of a parameter passed in the API exceeds the valid range.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Possible Causes**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciThe parameter value exceeds the value range.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Solution**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ciUse a valid parameter value.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci## 10200002 Parameter Parsing Error
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**Error Message**
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciInvalid ${param} string.
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci**Description**
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ciFailed to parse a string.
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci**Possible Causes**
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ciA parameter of the string type passed in the API is a non-standard string. As a result, the string fails to be parsed.
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci**Solution**
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ciCheck the format of the string.
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci## 10200003 Failed to Initialize the Worker Instance
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Error Message**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciWorker initialization failed.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**Description**
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThe **Worker** instance fails to be initialized when the API is called.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci**Possible Causes**
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci1. The number of **Worker** instances to be created exceeds the upper limit.
56e41f4b71Sopenharmony_ci2. The options for setting the **Worker** instance are incorrect.
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci**Solution**
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ci1. Check whether the number of **Worker** instances exceeds 8. If yes, destroy idle **Worker** instances.
61e41f4b71Sopenharmony_ci2. If **WorkerOptions** is set, check the parameter type and validity.
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci## 10200004 Worker Instance Is Not Running
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ci**Error Message**
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ciThe Worker instance is not running.
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ci**Description**
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ciThe **Worker** instance is not running when the API is called.
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci**Possible Causes**
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ciWhen the API is called, the **Worker** instance has been destroyed or is being destroyed.
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ci**Solution**
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ciEnsure that the **Worker** instance is running properly.
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ci## 10200005 API Not Supported in the Worker Thread
82e41f4b71Sopenharmony_ci
83e41f4b71Sopenharmony_ci**Error Message**
84e41f4b71Sopenharmony_ci
85e41f4b71Sopenharmony_ciThe called API is not supported in the worker thread.
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ci**Description**
88e41f4b71Sopenharmony_ci
89e41f4b71Sopenharmony_ciAn API that is not supported by the worker thread is called.
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ci**Possible Causes**
92e41f4b71Sopenharmony_ci
93e41f4b71Sopenharmony_ciThe worker thread does not support the API.
94e41f4b71Sopenharmony_ci
95e41f4b71Sopenharmony_ci**Solution**
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ciUse a supported API.
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ci## 10200006 Worker Data Serialization Exception
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ci**Error Message**
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ciAn exception occurred during serialization.
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ci**Description**
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ciAn error occurs during serialization.
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ci**Possible Causes**
110e41f4b71Sopenharmony_ci
111e41f4b71Sopenharmony_ciThe type of data to transfer does not support serialization or is imported externally.
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ci**Solution**
114e41f4b71Sopenharmony_ci
115e41f4b71Sopenharmony_ciEnsure that the data to transfer is a valid serialized object supported by Worker. For details, see [Serialization Types Supported by TaskPool and Worker](../../arkts-utils/serialization-support-types.md).
116e41f4b71Sopenharmony_ci
117e41f4b71Sopenharmony_ci## 10200007 Abnormal Worker File Path
118e41f4b71Sopenharmony_ci
119e41f4b71Sopenharmony_ci**Error Message**
120e41f4b71Sopenharmony_ci
121e41f4b71Sopenharmony_ciThe worker file path is invalid.
122e41f4b71Sopenharmony_ci
123e41f4b71Sopenharmony_ci**Description**
124e41f4b71Sopenharmony_ci
125e41f4b71Sopenharmony_ciThe file path is invalid, and the **Worker** instance cannot be loaded.
126e41f4b71Sopenharmony_ci
127e41f4b71Sopenharmony_ci**Possible Causes**
128e41f4b71Sopenharmony_ci
129e41f4b71Sopenharmony_ciThe worker file path is invalid. As a result, a valid **worker.abc** file cannot be generated during the build.
130e41f4b71Sopenharmony_ci
131e41f4b71Sopenharmony_ci**Solution**
132e41f4b71Sopenharmony_ci
133e41f4b71Sopenharmony_ciEnsure that the worker file path complies with the specifications for creating **Worker** instances. For details, see the example under [constructor<sup>9+</sup>](js-apis-worker.md#constructor9).
134e41f4b71Sopenharmony_ci
135e41f4b71Sopenharmony_ci## 10200009 Buffer Size Error
136e41f4b71Sopenharmony_ci
137e41f4b71Sopenharmony_ci**Error Message**
138e41f4b71Sopenharmony_ci
139e41f4b71Sopenharmony_ciThe buffer size must be a multiple of ${size}.
140e41f4b71Sopenharmony_ci
141e41f4b71Sopenharmony_ci**Description**
142e41f4b71Sopenharmony_ci
143e41f4b71Sopenharmony_ciThe buffer size does not meet the requirement.
144e41f4b71Sopenharmony_ci
145e41f4b71Sopenharmony_ci**Possible Causes**
146e41f4b71Sopenharmony_ci
147e41f4b71Sopenharmony_ciThe buffer size is not an integer multiple of **size**, which can be 16-bit, 32-bit, or 64-bit.
148e41f4b71Sopenharmony_ci
149e41f4b71Sopenharmony_ci**Solution**
150e41f4b71Sopenharmony_ci
151e41f4b71Sopenharmony_ciUse a buffer the size of which meets the requirements.
152e41f4b71Sopenharmony_ci  
153e41f4b71Sopenharmony_ci
154e41f4b71Sopenharmony_ci## 10200010 Empty Container
155e41f4b71Sopenharmony_ci
156e41f4b71Sopenharmony_ci**Error Message**
157e41f4b71Sopenharmony_ci
158e41f4b71Sopenharmony_ciThe container is empty.
159e41f4b71Sopenharmony_ci
160e41f4b71Sopenharmony_ci**Description**
161e41f4b71Sopenharmony_ci
162e41f4b71Sopenharmony_ciThe container to be operated is empty.
163e41f4b71Sopenharmony_ci
164e41f4b71Sopenharmony_ci**Possible Causes**
165e41f4b71Sopenharmony_ci
166e41f4b71Sopenharmony_ciNo element is added to the container.
167e41f4b71Sopenharmony_ci
168e41f4b71Sopenharmony_ci**Solution**
169e41f4b71Sopenharmony_ci
170e41f4b71Sopenharmony_ciAdd elements to the container first.
171e41f4b71Sopenharmony_ci
172e41f4b71Sopenharmony_ci## 10200011 Passed this.object Is Not an Instance of the containers Class
173e41f4b71Sopenharmony_ci
174e41f4b71Sopenharmony_ci**Error Message**
175e41f4b71Sopenharmony_ci
176e41f4b71Sopenharmony_ciThe {methodName} method cannot be bound.
177e41f4b71Sopenharmony_ci
178e41f4b71Sopenharmony_ci**Description**
179e41f4b71Sopenharmony_ci
180e41f4b71Sopenharmony_ci**this.object** passed in the API is not an instance of the **containers** class.
181e41f4b71Sopenharmony_ci
182e41f4b71Sopenharmony_ci**Possible Causes**
183e41f4b71Sopenharmony_ci
184e41f4b71Sopenharmony_ciThe APIs of the **containers** class do not support **bind()**.
185e41f4b71Sopenharmony_ci
186e41f4b71Sopenharmony_ci**Solution**
187e41f4b71Sopenharmony_ci
188e41f4b71Sopenharmony_ci1. Check whether **bind()** is used to call the API.
189e41f4b71Sopenharmony_ci2. Check whether an object that is not a container instance is assigned to the API.
190e41f4b71Sopenharmony_ci
191e41f4b71Sopenharmony_ci## 10200012 Constructor Calling Failure
192e41f4b71Sopenharmony_ci
193e41f4b71Sopenharmony_ci**Error Message**
194e41f4b71Sopenharmony_ci
195e41f4b71Sopenharmony_ciThe {className}'s constructor cannot be directly invoked.
196e41f4b71Sopenharmony_ci
197e41f4b71Sopenharmony_ci**Description**
198e41f4b71Sopenharmony_ci
199e41f4b71Sopenharmony_ciA constructor of the **containers** class is called directly to create an instance.
200e41f4b71Sopenharmony_ci
201e41f4b71Sopenharmony_ci**Possible Causes**
202e41f4b71Sopenharmony_ci
203e41f4b71Sopenharmony_ciThe constructors of the **containers** class cannot be directly called. The keyword **new** must be used.
204e41f4b71Sopenharmony_ci
205e41f4b71Sopenharmony_ci**Solution**
206e41f4b71Sopenharmony_ci
207e41f4b71Sopenharmony_ciUse the keyword **new** to create an instance.
208e41f4b71Sopenharmony_ci
209e41f4b71Sopenharmony_ci## 10200013 Read-Only Property
210e41f4b71Sopenharmony_ci
211e41f4b71Sopenharmony_ci**Error Message**
212e41f4b71Sopenharmony_ci
213e41f4b71Sopenharmony_ci${propertyName} cannot be set for the buffer that has only a getter.
214e41f4b71Sopenharmony_ci
215e41f4b71Sopenharmony_ci**Description**
216e41f4b71Sopenharmony_ci
217e41f4b71Sopenharmony_ciThe buffer ${propertyName} is read-only and cannot be set.
218e41f4b71Sopenharmony_ci
219e41f4b71Sopenharmony_ci**Possible Causes**
220e41f4b71Sopenharmony_ci
221e41f4b71Sopenharmony_ciThe buffer is read-only.
222e41f4b71Sopenharmony_ci
223e41f4b71Sopenharmony_ci**Solution**
224e41f4b71Sopenharmony_ci
225e41f4b71Sopenharmony_ciDo not set the read-only attribute for the buffer.
226e41f4b71Sopenharmony_ci
227e41f4b71Sopenharmony_ci## 10200014 Non-Concurrent Function Error
228e41f4b71Sopenharmony_ci
229e41f4b71Sopenharmony_ci**Error Message**
230e41f4b71Sopenharmony_ci
231e41f4b71Sopenharmony_ciThe function is not marked as concurrent.
232e41f4b71Sopenharmony_ci
233e41f4b71Sopenharmony_ci**Description**
234e41f4b71Sopenharmony_ci
235e41f4b71Sopenharmony_ciThe function is not marked as **concurrent**.
236e41f4b71Sopenharmony_ci
237e41f4b71Sopenharmony_ci**Possible Causes**
238e41f4b71Sopenharmony_ci
239e41f4b71Sopenharmony_ci**@Concurrent** is not added to the function required by the task to be executed in the task pool.
240e41f4b71Sopenharmony_ci
241e41f4b71Sopenharmony_ci**Solution**
242e41f4b71Sopenharmony_ci
243e41f4b71Sopenharmony_ciCheck the functions required by the tasks executed by the task pool and add the **@Concurrent** decorator.
244e41f4b71Sopenharmony_ci
245e41f4b71Sopenharmony_ci## 10200015 Failed to Cancel a Task That Does Not Exist
246e41f4b71Sopenharmony_ci
247e41f4b71Sopenharmony_ci**Error Message**
248e41f4b71Sopenharmony_ci
249e41f4b71Sopenharmony_ciThe task to cancel does not exist.
250e41f4b71Sopenharmony_ci
251e41f4b71Sopenharmony_ci**Description**
252e41f4b71Sopenharmony_ci
253e41f4b71Sopenharmony_ciThis error code is reported when you attempt to cancel a task that does not exist.
254e41f4b71Sopenharmony_ci
255e41f4b71Sopenharmony_ci**Possible Causes**
256e41f4b71Sopenharmony_ci
257e41f4b71Sopenharmony_ciThe task to cancel does not exist in the task pool.
258e41f4b71Sopenharmony_ci
259e41f4b71Sopenharmony_ci**Solution**
260e41f4b71Sopenharmony_ci
261e41f4b71Sopenharmony_ciBefore canceling a task, ensure that the task has been placed in the task pool by calling [taskpool.execute](js-apis-taskpool.md#taskpoolexecute-1) and is not finishing. If you are not sure, capture exceptions.
262e41f4b71Sopenharmony_ci
263e41f4b71Sopenharmony_ci## 10200016 Failed to Cancel a Task Being Executed
264e41f4b71Sopenharmony_ci
265e41f4b71Sopenharmony_ci**Error Message**
266e41f4b71Sopenharmony_ci
267e41f4b71Sopenharmony_ciThe task to cancel is being executed.
268e41f4b71Sopenharmony_ci
269e41f4b71Sopenharmony_ci**Description**
270e41f4b71Sopenharmony_ci
271e41f4b71Sopenharmony_ciThis error code is reported when you attempt to cancel a task that is being executed.
272e41f4b71Sopenharmony_ci
273e41f4b71Sopenharmony_ci**Possible Causes**
274e41f4b71Sopenharmony_ci
275e41f4b71Sopenharmony_ciThe task to cancel is being executed.
276e41f4b71Sopenharmony_ci
277e41f4b71Sopenharmony_ci**Solution**
278e41f4b71Sopenharmony_ci
279e41f4b71Sopenharmony_ciBefore canceling a task, ensure that the task has been placed in the task pool by calling [taskpool.execute](js-apis-taskpool.md#taskpoolexecute-1) and has not started execution. If you are not sure, capture exceptions.
280e41f4b71Sopenharmony_ci
281e41f4b71Sopenharmony_ci## 10200017 Failed to Delete an Element That Does Not Exist
282e41f4b71Sopenharmony_ci
283e41f4b71Sopenharmony_ci**Error Message**
284e41f4b71Sopenharmony_ci
285e41f4b71Sopenharmony_ciThe element does not exist in this container.
286e41f4b71Sopenharmony_ci
287e41f4b71Sopenharmony_ci**Description**
288e41f4b71Sopenharmony_ci
289e41f4b71Sopenharmony_ciThis error code is reported when you attempt to delete an element that does not exist in the container.
290e41f4b71Sopenharmony_ci
291e41f4b71Sopenharmony_ci**Possible Causes**
292e41f4b71Sopenharmony_ci
293e41f4b71Sopenharmony_ciThe element to delete does not exist in the container.
294e41f4b71Sopenharmony_ci
295e41f4b71Sopenharmony_ci**Solution**
296e41f4b71Sopenharmony_ci
297e41f4b71Sopenharmony_ciBefore deleting an element, ensure that the element exists in this container.
298e41f4b71Sopenharmony_ci
299e41f4b71Sopenharmony_ci## 10200018 Failed to Cancel a Task Group That Does Not Exist
300e41f4b71Sopenharmony_ci
301e41f4b71Sopenharmony_ci**Error Message**
302e41f4b71Sopenharmony_ci
303e41f4b71Sopenharmony_ciThe task group to cancel does not exist.
304e41f4b71Sopenharmony_ci
305e41f4b71Sopenharmony_ci**Description**
306e41f4b71Sopenharmony_ci
307e41f4b71Sopenharmony_ciThis error code is reported when you attempt to cancel a task group that does not exist.
308e41f4b71Sopenharmony_ci
309e41f4b71Sopenharmony_ci**Possible Causes**
310e41f4b71Sopenharmony_ci
311e41f4b71Sopenharmony_ciThe task group to cancel does not exist in the task pool.
312e41f4b71Sopenharmony_ci
313e41f4b71Sopenharmony_ci**Solution**
314e41f4b71Sopenharmony_ci
315e41f4b71Sopenharmony_ciBefore canceling a task group, ensure that the task group placed in the task pool by calling [taskpool.execute](js-apis-taskpool.md#taskpoolexecute10) and is not finishing. If you are not sure, capture exceptions.
316e41f4b71Sopenharmony_ci
317e41f4b71Sopenharmony_ci## 10200019 Failed to Call an API of an Unregistered Object
318e41f4b71Sopenharmony_ci
319e41f4b71Sopenharmony_ci**Error Message**
320e41f4b71Sopenharmony_ci
321e41f4b71Sopenharmony_ciThe globalCallObject is not registered.
322e41f4b71Sopenharmony_ci
323e41f4b71Sopenharmony_ci**Description**
324e41f4b71Sopenharmony_ci
325e41f4b71Sopenharmony_ciThis error code is reported when you attempt to call an API of an object that is not registered.
326e41f4b71Sopenharmony_ci
327e41f4b71Sopenharmony_ci**Possible Causes**
328e41f4b71Sopenharmony_ci
329e41f4b71Sopenharmony_ciThe object with the specified name is not registered or has been destroyed on the **Worker** instance of the host thread.
330e41f4b71Sopenharmony_ci
331e41f4b71Sopenharmony_ci**Solution**
332e41f4b71Sopenharmony_ci
333e41f4b71Sopenharmony_ciDo not call the API on the object that is not registered or has been destroyed. If the registration or destruction status cannot be determined, use the try-catch mechanism to call the API.
334e41f4b71Sopenharmony_ci
335e41f4b71Sopenharmony_ci## 10200020 Failed to Call an API of a Registered Object
336e41f4b71Sopenharmony_ci
337e41f4b71Sopenharmony_ci**Error Message**
338e41f4b71Sopenharmony_ci
339e41f4b71Sopenharmony_ciThe method to be called is not callable or is an async method or a generator.
340e41f4b71Sopenharmony_ci
341e41f4b71Sopenharmony_ci**Description**
342e41f4b71Sopenharmony_ci
343e41f4b71Sopenharmony_ciThis error code is reported when you attempt to call an API of an incorrect type on a registered object.
344e41f4b71Sopenharmony_ci
345e41f4b71Sopenharmony_ci**Possible Causes**
346e41f4b71Sopenharmony_ci
347e41f4b71Sopenharmony_ciThe attribute contained in the object is not callable, the method contained in the object is asynchronous, or the object is returned by the generator function.
348e41f4b71Sopenharmony_ci
349e41f4b71Sopenharmony_ci**Solution**
350e41f4b71Sopenharmony_ci
351e41f4b71Sopenharmony_ciEnsure that the attribute contained in the method is callable and that the method itself or its underlying layer is not asynchronous.
352e41f4b71Sopenharmony_ci
353e41f4b71Sopenharmony_ci## 10200021 Waiting for a Global Call Times Out
354e41f4b71Sopenharmony_ci
355e41f4b71Sopenharmony_ci**Error Message**
356e41f4b71Sopenharmony_ci
357e41f4b71Sopenharmony_ciWaiting for a global call timed out.
358e41f4b71Sopenharmony_ci
359e41f4b71Sopenharmony_ci**Description**
360e41f4b71Sopenharmony_ci
361e41f4b71Sopenharmony_ciThis error code is reported when a global call does not return any value within the specified duration.
362e41f4b71Sopenharmony_ci
363e41f4b71Sopenharmony_ci**Possible Causes**
364e41f4b71Sopenharmony_ci
365e41f4b71Sopenharmony_ciThe global call does not return any value within the specified duration, which is 5000 ms by default.
366e41f4b71Sopenharmony_ci
367e41f4b71Sopenharmony_ci**Solution**
368e41f4b71Sopenharmony_ci
369e41f4b71Sopenharmony_ciDo not call APIs that take a long time to process data, such as complex computing and file read/write. Otherwise, worker threads will be blocked for a long time, resulting in poor running performance.
370e41f4b71Sopenharmony_ci
371e41f4b71Sopenharmony_ci## 10200022 Functions Not Called in TaskPool
372e41f4b71Sopenharmony_ci
373e41f4b71Sopenharmony_ci**Error Message**
374e41f4b71Sopenharmony_ci
375e41f4b71Sopenharmony_ciThe function is not called in the TaskPool thread.
376e41f4b71Sopenharmony_ci
377e41f4b71Sopenharmony_ci**Description**
378e41f4b71Sopenharmony_ci
379e41f4b71Sopenharmony_ciThis error code is reported when the function is not called in a **TaskPool** thread.
380e41f4b71Sopenharmony_ci
381e41f4b71Sopenharmony_ci**Possible Causes**
382e41f4b71Sopenharmony_ci
383e41f4b71Sopenharmony_ciThe function is called in the main thread or in a thread that is not in **TaskPool**.
384e41f4b71Sopenharmony_ci
385e41f4b71Sopenharmony_ci**Solution**
386e41f4b71Sopenharmony_ci
387e41f4b71Sopenharmony_ciEnsure that concurrent functions are executed in a **TaskPool** thread. If you are not sure, capture exceptions.
388e41f4b71Sopenharmony_ci
389e41f4b71Sopenharmony_ci## 10200023 Functions Not Called in Concurrent Functions
390e41f4b71Sopenharmony_ci
391e41f4b71Sopenharmony_ci**Error Message**
392e41f4b71Sopenharmony_ci
393e41f4b71Sopenharmony_ciThe function is not called in the concurrent function.
394e41f4b71Sopenharmony_ci
395e41f4b71Sopenharmony_ci**Description**
396e41f4b71Sopenharmony_ci
397e41f4b71Sopenharmony_ciThis error code is reported when the function is not called in a concurrent function.
398e41f4b71Sopenharmony_ci
399e41f4b71Sopenharmony_ci**Possible Causes**
400e41f4b71Sopenharmony_ci
401e41f4b71Sopenharmony_ciThe function is called in a callback function.
402e41f4b71Sopenharmony_ci
403e41f4b71Sopenharmony_ci**Solution**
404e41f4b71Sopenharmony_ci
405e41f4b71Sopenharmony_ciEnsure that the function is called in a concurrent function. If you are not sure, capture exceptions.
406e41f4b71Sopenharmony_ci
407e41f4b71Sopenharmony_ci## 10200024 Functions Not Registered in the Host Thread
408e41f4b71Sopenharmony_ci
409e41f4b71Sopenharmony_ci**Error Message**
410e41f4b71Sopenharmony_ci
411e41f4b71Sopenharmony_ciThe callback is not registered on the host side.
412e41f4b71Sopenharmony_ci
413e41f4b71Sopenharmony_ci**Description**
414e41f4b71Sopenharmony_ci
415e41f4b71Sopenharmony_ciThis error code is reported when this function is called without registering a callback in the host thread.
416e41f4b71Sopenharmony_ci
417e41f4b71Sopenharmony_ci**Possible Causes**
418e41f4b71Sopenharmony_ci
419e41f4b71Sopenharmony_ciThis function is called without registering a callback in the host thread.
420e41f4b71Sopenharmony_ci
421e41f4b71Sopenharmony_ci**Solution**
422e41f4b71Sopenharmony_ci
423e41f4b71Sopenharmony_ciEnsure that the callback has been registered in the host thread before this function is called. If you are not sure, capture exceptions.
424e41f4b71Sopenharmony_ci
425e41f4b71Sopenharmony_ci## 10200025 Failed to Add a Task with Dependent Tasks to the Queue
426e41f4b71Sopenharmony_ci
427e41f4b71Sopenharmony_ci**Error Message**
428e41f4b71Sopenharmony_ci
429e41f4b71Sopenharmony_cidependent task not allowed.
430e41f4b71Sopenharmony_ci
431e41f4b71Sopenharmony_ci**Description**
432e41f4b71Sopenharmony_ci
433e41f4b71Sopenharmony_ciA task that has dependent tasks cannot be added to the queue.
434e41f4b71Sopenharmony_ci
435e41f4b71Sopenharmony_ci**Possible Causes**
436e41f4b71Sopenharmony_ci
437e41f4b71Sopenharmony_ciThe task to be added to the queue has dependent tasks.
438e41f4b71Sopenharmony_ci
439e41f4b71Sopenharmony_ci**Solution**
440e41f4b71Sopenharmony_ci
441e41f4b71Sopenharmony_ciCall [removeDependency()](js-apis-taskpool.md#removedependency11) to remove the dependent tasks first.
442e41f4b71Sopenharmony_ci
443e41f4b71Sopenharmony_ci## 10200026 Task with a Cyclic Dependency
444e41f4b71Sopenharmony_ci
445e41f4b71Sopenharmony_ci**Error Message**
446e41f4b71Sopenharmony_ci
447e41f4b71Sopenharmony_ciThere is a circular dependency.
448e41f4b71Sopenharmony_ci
449e41f4b71Sopenharmony_ci**Description**
450e41f4b71Sopenharmony_ci
451e41f4b71Sopenharmony_ciThe current task has a cyclic dependency.
452e41f4b71Sopenharmony_ci
453e41f4b71Sopenharmony_ci**Possible Causes**
454e41f4b71Sopenharmony_ci
455e41f4b71Sopenharmony_ciThe current task has a cyclic dependency.
456e41f4b71Sopenharmony_ci
457e41f4b71Sopenharmony_ci**Solution**
458e41f4b71Sopenharmony_ci
459e41f4b71Sopenharmony_ciCall [removeDependency()](js-apis-taskpool.md#removedependency11) to remove unnecessary dependencies.
460e41f4b71Sopenharmony_ci
461e41f4b71Sopenharmony_ci## 10200027 Dependency Does Not Exist
462e41f4b71Sopenharmony_ci
463e41f4b71Sopenharmony_ci**Error Message**
464e41f4b71Sopenharmony_ci
465e41f4b71Sopenharmony_ciThe dependency does not exist.
466e41f4b71Sopenharmony_ci
467e41f4b71Sopenharmony_ci**Description**
468e41f4b71Sopenharmony_ci
469e41f4b71Sopenharmony_ci[removeDependency()](js-apis-taskpool.md#removedependency11) is called to remove a dependent task, but the task does not exist.
470e41f4b71Sopenharmony_ci
471e41f4b71Sopenharmony_ci**Possible Causes**
472e41f4b71Sopenharmony_ci
473e41f4b71Sopenharmony_ciThe dependent task to remove does not exist.
474e41f4b71Sopenharmony_ci
475e41f4b71Sopenharmony_ci**Solution**
476e41f4b71Sopenharmony_ci
477e41f4b71Sopenharmony_ciEnsure that the dependent task to remove has been added by using [addDependency()](js-apis-taskpool.md#adddependency11). If you are not sure, capture exceptions.
478e41f4b71Sopenharmony_ci
479e41f4b71Sopenharmony_ci## 10200028 Delay Less Than Zero
480e41f4b71Sopenharmony_ci
481e41f4b71Sopenharmony_ci**Error Message**
482e41f4b71Sopenharmony_ci
483e41f4b71Sopenharmony_ciThe delayTime is less than zero.
484e41f4b71Sopenharmony_ci
485e41f4b71Sopenharmony_ci**Description**
486e41f4b71Sopenharmony_ci
487e41f4b71Sopenharmony_ciThis error code is reported when the value of [delayTime](js-apis-taskpool.md#taskpoolexecutedelayed11) is less than 0.
488e41f4b71Sopenharmony_ci
489e41f4b71Sopenharmony_ci**Possible Causes**
490e41f4b71Sopenharmony_ci
491e41f4b71Sopenharmony_ciThe value of [delayTime](js-apis-taskpool.md#taskpoolexecutedelayed11) is less than 0.
492e41f4b71Sopenharmony_ci
493e41f4b71Sopenharmony_ci**Solution**
494e41f4b71Sopenharmony_ci
495e41f4b71Sopenharmony_ciEnsure that [delayTime](js-apis-taskpool.md#taskpoolexecutedelayed11) is set to a value greater than 0. If you are not sure, capture exceptions.
496e41f4b71Sopenharmony_ci
497e41f4b71Sopenharmony_ci## 10200029 ArrayBuffer Cannot Be Set as Both TransferList and CloneList
498e41f4b71Sopenharmony_ci
499e41f4b71Sopenharmony_ci**Error Message**
500e41f4b71Sopenharmony_ci
501e41f4b71Sopenharmony_ciAn ArrayBuffer cannot be set as both a transfer list and a clone list.
502e41f4b71Sopenharmony_ci
503e41f4b71Sopenharmony_ci**Description**
504e41f4b71Sopenharmony_ci
505e41f4b71Sopenharmony_ciAn ArrayBuffer cannot be set as both a transfer list and a clone list.
506e41f4b71Sopenharmony_ci
507e41f4b71Sopenharmony_ci**Possible Causes**
508e41f4b71Sopenharmony_ci
509e41f4b71Sopenharmony_ciDuring the transmission of a shared list, an ArrayBuffer is a parameter of both [setTransferList](js-apis-taskpool.md#settransferlist10) and [setCloneList](js-apis-taskpool.md#setclonelist11).
510e41f4b71Sopenharmony_ci
511e41f4b71Sopenharmony_ci**Solution**
512e41f4b71Sopenharmony_ci
513e41f4b71Sopenharmony_ciEnsure that an ArrayBuffer is set as either a transfer list or clone list. If you are not sure, capture exceptions.
514e41f4b71Sopenharmony_ci
515e41f4b71Sopenharmony_ci## 10200030 Lock Does Not Exist
516e41f4b71Sopenharmony_ci
517e41f4b71Sopenharmony_ci**Error Message**
518e41f4b71Sopenharmony_ci
519e41f4b71Sopenharmony_ciThe lock does not exist.
520e41f4b71Sopenharmony_ci
521e41f4b71Sopenharmony_ci**Description**
522e41f4b71Sopenharmony_ci
523e41f4b71Sopenharmony_ciThe requested lock does not exist.
524e41f4b71Sopenharmony_ci
525e41f4b71Sopenharmony_ci**Possible Causes**
526e41f4b71Sopenharmony_ci
527e41f4b71Sopenharmony_ciAn asynchronous lock function uses an incorrect lock name.
528e41f4b71Sopenharmony_ci
529e41f4b71Sopenharmony_ci**Solution**
530e41f4b71Sopenharmony_ci
531e41f4b71Sopenharmony_ciEnsure that the correct lock name is used when the API is called.
532e41f4b71Sopenharmony_ci
533e41f4b71Sopenharmony_ci## 10200031 Calling lockAsync Timed Out
534e41f4b71Sopenharmony_ci
535e41f4b71Sopenharmony_ci**Error Message**
536e41f4b71Sopenharmony_ci
537e41f4b71Sopenharmony_ciTimeout exceeded.
538e41f4b71Sopenharmony_ci
539e41f4b71Sopenharmony_ci**Description**
540e41f4b71Sopenharmony_ci
541e41f4b71Sopenharmony_ciThe [lockAsync](js-apis-arkts-utils.md#lockasync) API fails to acquire a lock within the specified period.
542e41f4b71Sopenharmony_ci
543e41f4b71Sopenharmony_ci**Possible Causes**
544e41f4b71Sopenharmony_ci
545e41f4b71Sopenharmony_ciA deadlock occurs somewhere.
546e41f4b71Sopenharmony_ci
547e41f4b71Sopenharmony_ci**Solution**
548e41f4b71Sopenharmony_ci
549e41f4b71Sopenharmony_ciCheck whether a circular dependency exists between locks. Add the **catch** statement to the [lockAsync](js-apis-arkts-utils.md#lockasync) call to catch error information, which contains information about existing asynchronous lock instances and possible deadlock warnings.
550e41f4b71Sopenharmony_ci
551e41f4b71Sopenharmony_ci## 10200201 Concurrent Modification Error
552e41f4b71Sopenharmony_ci
553e41f4b71Sopenharmony_ci**Error Message**
554e41f4b71Sopenharmony_ci
555e41f4b71Sopenharmony_ciConcurrent modification error.
556e41f4b71Sopenharmony_ci
557e41f4b71Sopenharmony_ci**Description**
558e41f4b71Sopenharmony_ci
559e41f4b71Sopenharmony_ciAn error occurs during concurrent modification.
560e41f4b71Sopenharmony_ci
561e41f4b71Sopenharmony_ci**Possible Causes**
562e41f4b71Sopenharmony_ci
563e41f4b71Sopenharmony_ciA non-concurrent-safe container provided by **collections** is used, and the result generated when multiple concurrent instances simultaneously modify the container is undefined.
564e41f4b71Sopenharmony_ci
565e41f4b71Sopenharmony_ci**Solution**
566e41f4b71Sopenharmony_ci
567e41f4b71Sopenharmony_ciUse asynchronous locks in non-concurrent-safe containers provided by **collections**.
568e41f4b71Sopenharmony_ci
569e41f4b71Sopenharmony_ci## 10200034 No Callback Function Is Registered for a Listening Task
570e41f4b71Sopenharmony_ci
571e41f4b71Sopenharmony_ci**Error Message**
572e41f4b71Sopenharmony_ci
573e41f4b71Sopenharmony_ciThe executed task does not support the registration of listeners.
574e41f4b71Sopenharmony_ci
575e41f4b71Sopenharmony_ci**Description**
576e41f4b71Sopenharmony_ci
577e41f4b71Sopenharmony_ciThe task does not support listener registration.
578e41f4b71Sopenharmony_ci
579e41f4b71Sopenharmony_ci**Possible Causes**
580e41f4b71Sopenharmony_ci
581e41f4b71Sopenharmony_ciThe callback function is not registered or is registered after the task is executed.
582e41f4b71Sopenharmony_ci
583e41f4b71Sopenharmony_ci**Solution**
584e41f4b71Sopenharmony_ci
585e41f4b71Sopenharmony_ciEnsure that the callback function is registered before the task is executed.
586e41f4b71Sopenharmony_ci
587e41f4b71Sopenharmony_ci## 10200035 doWrite Is Not Implemented
588e41f4b71Sopenharmony_ci
589e41f4b71Sopenharmony_ci**Error Message**
590e41f4b71Sopenharmony_ci
591e41f4b71Sopenharmony_ciThe doWrite method has not been implemented.
592e41f4b71Sopenharmony_ci
593e41f4b71Sopenharmony_ci**Description**
594e41f4b71Sopenharmony_ci
595e41f4b71Sopenharmony_ciThe **doWrite** API is not implemented.
596e41f4b71Sopenharmony_ci
597e41f4b71Sopenharmony_ci**Possible Causes**
598e41f4b71Sopenharmony_ci
599e41f4b71Sopenharmony_ciThe code inherits from the **Writable** class, but does not implement the [doWrite](js-apis-stream.md#dowrite) API.
600e41f4b71Sopenharmony_ci
601e41f4b71Sopenharmony_ci**Solution**
602e41f4b71Sopenharmony_ci
603e41f4b71Sopenharmony_ciImplement the **doWrite** API in the inherited class.
604e41f4b71Sopenharmony_ci
605e41f4b71Sopenharmony_ci## 10200036 Write Operation Is Still Performed After the Stream Ends
606e41f4b71Sopenharmony_ci
607e41f4b71Sopenharmony_ci**Error Message**
608e41f4b71Sopenharmony_ci
609e41f4b71Sopenharmony_ciThe stream has been ended.
610e41f4b71Sopenharmony_ci
611e41f4b71Sopenharmony_ci**Description**
612e41f4b71Sopenharmony_ci
613e41f4b71Sopenharmony_ciThe write operation is still performed after the stream ends.
614e41f4b71Sopenharmony_ci
615e41f4b71Sopenharmony_ci**Possible Causes**
616e41f4b71Sopenharmony_ci
617e41f4b71Sopenharmony_ciData is written after the [end](js-apis-stream.md#end) API is called.
618e41f4b71Sopenharmony_ci
619e41f4b71Sopenharmony_ci**Solution**
620e41f4b71Sopenharmony_ci
621e41f4b71Sopenharmony_ciAdjust the sequence in which the APIs are called to ensure that no write operation is performed after [end](js-apis-stream.md#end).
622e41f4b71Sopenharmony_ci
623e41f4b71Sopenharmony_ci## 10200037 Callback Is Invoked Multiple Times
624e41f4b71Sopenharmony_ci
625e41f4b71Sopenharmony_ci**Error Message**
626e41f4b71Sopenharmony_ci
627e41f4b71Sopenharmony_ciThe callback is invoked multiple times consecutively.
628e41f4b71Sopenharmony_ci
629e41f4b71Sopenharmony_ci**Description**
630e41f4b71Sopenharmony_ci
631e41f4b71Sopenharmony_ciThe callback is invoked multiple times.
632e41f4b71Sopenharmony_ci
633e41f4b71Sopenharmony_ci**Possible Causes**
634e41f4b71Sopenharmony_ci
635e41f4b71Sopenharmony_ciIn the [doWrite](js-apis-stream.md#dowrite) implementation code, the callback is invoked multiple times for one write operation.
636e41f4b71Sopenharmony_ci
637e41f4b71Sopenharmony_ci**Solution**
638e41f4b71Sopenharmony_ci
639e41f4b71Sopenharmony_ciCheck the implementation of [doWrite](js-apis-stream.md#dowrite) and exclude the situation where the callback is invoked multiple times for one write operation.
640e41f4b71Sopenharmony_ci
641e41f4b71Sopenharmony_ci## 10200038 doRead Is Not Implemented
642e41f4b71Sopenharmony_ci
643e41f4b71Sopenharmony_ci**Error Message**
644e41f4b71Sopenharmony_ci
645e41f4b71Sopenharmony_ciThe doRead method has not been implemented.
646e41f4b71Sopenharmony_ci
647e41f4b71Sopenharmony_ci**Description**
648e41f4b71Sopenharmony_ci
649e41f4b71Sopenharmony_ciThe **doRead** API is not implemented.
650e41f4b71Sopenharmony_ci
651e41f4b71Sopenharmony_ci**Possible Causes**
652e41f4b71Sopenharmony_ci
653e41f4b71Sopenharmony_ciThe code inherits from the **Readable** class, but does not implement the [doRead](js-apis-stream.md#doread) API.
654e41f4b71Sopenharmony_ci
655e41f4b71Sopenharmony_ci**Solution**
656e41f4b71Sopenharmony_ci
657e41f4b71Sopenharmony_ciImplement the **doRead** API in the inherited class.
658e41f4b71Sopenharmony_ci
659e41f4b71Sopenharmony_ci## 10200039 doTransform Is Not Implemented
660e41f4b71Sopenharmony_ci
661e41f4b71Sopenharmony_ci**Error Message**
662e41f4b71Sopenharmony_ci
663e41f4b71Sopenharmony_ciThe doTransform method has not been implemented for a class that inherits from Transform.
664e41f4b71Sopenharmony_ci
665e41f4b71Sopenharmony_ci**Description**
666e41f4b71Sopenharmony_ci
667e41f4b71Sopenharmony_ciThe **doTransform** API is not implemented.
668e41f4b71Sopenharmony_ci
669e41f4b71Sopenharmony_ci**Possible Causes**
670e41f4b71Sopenharmony_ci
671e41f4b71Sopenharmony_ciThe code inherits from the **Transform** class, but does not implement the [doTransform](js-apis-stream.md#dotransform) API.
672e41f4b71Sopenharmony_ci
673e41f4b71Sopenharmony_ci**Solution**
674e41f4b71Sopenharmony_ci
675e41f4b71Sopenharmony_ciImplement the **doTransform** API in the inherited class.
676e41f4b71Sopenharmony_ci
677e41f4b71Sopenharmony_ci## 10200050 Concurrent Task That Has Been Executed Cannot Be Executed Periodically
678e41f4b71Sopenharmony_ci
679e41f4b71Sopenharmony_ci**Error Message**
680e41f4b71Sopenharmony_ci
681e41f4b71Sopenharmony_ciThe concurrent task has been executed and cannot be executed periodically.
682e41f4b71Sopenharmony_ci
683e41f4b71Sopenharmony_ci**Description**
684e41f4b71Sopenharmony_ci
685e41f4b71Sopenharmony_ciThe concurrent task that has been executed cannot be executed periodically.
686e41f4b71Sopenharmony_ci
687e41f4b71Sopenharmony_ci**Possible Causes**
688e41f4b71Sopenharmony_ci
689e41f4b71Sopenharmony_ciThe task has been executed before [executePeriodically](../apis-arkts/js-apis-taskpool.md#taskpoolexecuteperiodically12) is called.
690e41f4b71Sopenharmony_ci
691e41f4b71Sopenharmony_ci**Solution**
692e41f4b71Sopenharmony_ci
693e41f4b71Sopenharmony_ciBefore calling the API, ensure that the task is not executed. If you are not sure, capture exceptions.
694e41f4b71Sopenharmony_ci
695e41f4b71Sopenharmony_ci## 10200051 Periodic Task Cannot Be Executed Again
696e41f4b71Sopenharmony_ci
697e41f4b71Sopenharmony_ci**Error Message**
698e41f4b71Sopenharmony_ci
699e41f4b71Sopenharmony_ciThe periodic task cannot be executed again.
700e41f4b71Sopenharmony_ci
701e41f4b71Sopenharmony_ci**Description**
702e41f4b71Sopenharmony_ci
703e41f4b71Sopenharmony_ciA periodic task cannot be executed again.
704e41f4b71Sopenharmony_ci
705e41f4b71Sopenharmony_ci**Possible Causes**
706e41f4b71Sopenharmony_ci
707e41f4b71Sopenharmony_ci[execute](../apis-arkts/js-apis-taskpool.md#execute11), [executeDelayed](../apis-arkts/js-apis-taskpool.md#taskpoolexecutedelayed11), [addTask](../apis-arkts/js-apis-taskpool.md#addtask10-1), or [execute](../apis-arkts/js-apis-taskpool.md#taskpoolexecute-1) is called again to execute a periodic call.
708e41f4b71Sopenharmony_ci
709e41f4b71Sopenharmony_ci**Solution**
710e41f4b71Sopenharmony_ci
711e41f4b71Sopenharmony_ciBefore calling these APIs, ensure that the task is not a periodic task. If you are not sure, capture exceptions.
712e41f4b71Sopenharmony_ci
713e41f4b71Sopenharmony_ci## 10200052 Periodic Task Cannot Have Dependencies
714e41f4b71Sopenharmony_ci
715e41f4b71Sopenharmony_ci**Error Message**
716e41f4b71Sopenharmony_ci
717e41f4b71Sopenharmony_ciThe periodic task cannot have a dependency.
718e41f4b71Sopenharmony_ci
719e41f4b71Sopenharmony_ci**Description**
720e41f4b71Sopenharmony_ci
721e41f4b71Sopenharmony_ciA periodic task cannot have dependencies.
722e41f4b71Sopenharmony_ci
723e41f4b71Sopenharmony_ci**Possible Causes**
724e41f4b71Sopenharmony_ci
725e41f4b71Sopenharmony_ci[removeDependency](../apis-arkts/js-apis-taskpool.md#removedependency11) or [addDependency](js-apis-taskpool.md#adddependency11) is called to remove or add dependencies for a periodic task.
726e41f4b71Sopenharmony_ci
727e41f4b71Sopenharmony_ci**Solution**
728e41f4b71Sopenharmony_ci
729e41f4b71Sopenharmony_ciBefore calling these APIs, ensure that the task is not a periodic task. If you are not sure, capture exceptions.
730e41f4b71Sopenharmony_ci
731e41f4b71Sopenharmony_ci## 10200060 Precision Limit Is Exceeded
732e41f4b71Sopenharmony_ci
733e41f4b71Sopenharmony_ci**Error Message**
734e41f4b71Sopenharmony_ci
735e41f4b71Sopenharmony_ciPrecision limit exceeded.
736e41f4b71Sopenharmony_ci
737e41f4b71Sopenharmony_ci**Description**
738e41f4b71Sopenharmony_ci
739e41f4b71Sopenharmony_ciA **Decimal** function is incorrectly used.
740e41f4b71Sopenharmony_ci
741e41f4b71Sopenharmony_ci**Possible Causes**
742e41f4b71Sopenharmony_ci
743e41f4b71Sopenharmony_ciThe precision of the function provided by **Decimal** exceeds the limit. This error code may be thrown by the following functions: [pow](js-apis-arkts-decimal.md#pow), [exp](js-apis-arkts-decimal.md#exp), [log](js-apis-arkts-decimal.md#log), [ln](js-apis-arkts-decimal.md#ln), [acos](js-apis-arkts-decimal.md#acos), [asin](js-apis-arkts-decimal.md#asin), [atan](js-apis-arkts-decimal.md#atan), [acosh](js-apis-arkts-decimal.md#acosh), [asinh](js-apis-arkts-decimal.md#asinh), [atanh](js-apis-arkts-decimal.md#atanh), [log2](js-apis-arkts-decimal.md#log2), [log10](js-apis-arkts-decimal.md#log10), and [atan2](js-apis-arkts-decimal.md#atan2).
744e41f4b71Sopenharmony_ci
745e41f4b71Sopenharmony_ci**Solution**
746e41f4b71Sopenharmony_ci
747e41f4b71Sopenharmony_ciUse [Decimal.set](js-apis-arkts-decimal.md#set) to set a valid precision.
748e41f4b71Sopenharmony_ci
749e41f4b71Sopenharmony_ciExample: Decimal.set({precision: 10})
750e41f4b71Sopenharmony_ci
751e41f4b71Sopenharmony_ci## 10200061 Encryption Method Is Unavailable
752e41f4b71Sopenharmony_ci
753e41f4b71Sopenharmony_ci**Error Message**
754e41f4b71Sopenharmony_ci
755e41f4b71Sopenharmony_cicrypto unavailable.
756e41f4b71Sopenharmony_ci
757e41f4b71Sopenharmony_ci**Description**
758e41f4b71Sopenharmony_ci
759e41f4b71Sopenharmony_ciA **Decimal** function is incorrectly used.
760e41f4b71Sopenharmony_ci
761e41f4b71Sopenharmony_ci**Possible Causes**
762e41f4b71Sopenharmony_ci
763e41f4b71Sopenharmony_ciWhen [crypto](js-apis-arkts-decimal.md#decimalconfig) of **Decimal** is set or the [Decimal.random](js-apis-arkts-decimal.md#random) function is used, the encryption method fails to be used.
764e41f4b71Sopenharmony_ci
765e41f4b71Sopenharmony_ci**Solution**
766e41f4b71Sopenharmony_ci
767e41f4b71Sopenharmony_ciUse [Decimal.set](js-apis-arkts-decimal.md#set) to cancel the encryption algorithm.
768e41f4b71Sopenharmony_ci
769e41f4b71Sopenharmony_ciExample: Decimal.set({crypto: false})
770