• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JsLeakWatcher Error Codes
2
3<!--Kit: Performance Analysis Kit-->
4<!--Subsystem: HiviewDFX-->
5<!--Owner: @lu-tao-->
6<!--Designer: @martin-duan-->
7<!--Tester: @gcw_KuLfPSbe-->
8<!--Adviser: @foryourself-->
9
10> **NOTE**
11>
12> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
13
14## 10801001 Invalid isEnabled
15
16**Error Message**
17
18The parameter isEnabled is invalid.
19
20**Description**
21
22When the **enableLeakWatcher** function is called, the invalid parameter **isEnabled** is input.
23
24**Possible Causes**
25
261. The type of **isEnabled** is incorrect.
27
282. Mandatory parameters are not specified.
29
30
31**Solution**
32
33Ensure that the type of **isEnabled** is correct.
34
35## 10801002 Invalid config
36
37**Error Message**
38
39The parameter config is invalid.
40
41**Description**
42
43When the **enableLeakWatcher** function is called, the invalid parameter **config** is input.
44
45**Possible Causes**
46
471. The type of **config** is incorrect.
48
492. Mandatory parameters are not specified.
50
513. Parameter verification failed. This parameter is an array of strings. The array must contain one or more of **XComponent**, **NodeContainer**, **Window**, Custom Component, and Ability.
52
53**Solution**
54
55Ensure that the type of **config** is correct.
56
57## 10801003 Invalid callback
58
59**Error Message**
60
61The parameter callback is invalid.
62
63**Description**
64
65When the **enableLeakWatcher** function is called, the invalid parameter **callback** is input.
66
67**Possible Causes**
68
691. The type of **callback** is incorrect.
70
712. Mandatory parameters are not specified.
72
733. Parameter verification failed.
74
75**Solution**
76
77Ensure that the type of **callback** is correct. The input parameter of the **callback** function is an array of two strings.
78
79Index **0** indicates the name of the leak list file, whose name extension is **.jsleaklist**. Index **1** indicates the name of the VM memory snapshot file, whose name extension is **.rawheap**.
80