Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HarmonyOS
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The parameter isEnabled is invalid.
Description
When the enableLeakWatcher function is called, the invalid parameter isEnabled is input.
Possible Causes
The type of isEnabled is incorrect.
Mandatory parameters are not specified.
Solution
Ensure that the type of isEnabled is correct.
Error Message
The parameter config is invalid.
Description
When the enableLeakWatcher function is called, the invalid parameter config is input.
Possible Causes
The type of config is incorrect.
Mandatory parameters are not specified.
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.
Solution
Ensure that the type of config is correct.
Error Message
The parameter callback is invalid.
Description
When the enableLeakWatcher function is called, the invalid parameter callback is input.
Possible Causes
The type of callback is incorrect.
Mandatory parameters are not specified.
Parameter verification failed.
Solution
Ensure that the type of callback is correct. The input parameter of the callback function is an array of two strings.
Index 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.
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.