目录

How do I obtain the error code when an error occurs during Web component loading?

Symptom

The onErrorReceive callback is triggered when an error occurs during web page loading. The callback returns an error code. You need to know the meaning of the error code.

Solution

For details about the error codes, see @ohos.web.netErrorList(The List of ArkWeb Network Protocol Stack Errors).