This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Invalid parameter value.
Description
This error code is reported if the parameter value is invalid.
Cause
The input parameter value is not within the valid value range.
Procedure
Check whether the input parameter value is within the valid value range.
Error Message
Failed to connect to the service.
Description
This error code is reported if a service connection failure occurs.
Cause
The service is abnormal.
Procedure
Check whether system services are running properly.
Error Message
System internal error.
Description
This error code is reported if a system internal error occurs.
Cause
The memory is abnormal.
A null pointer is present.
Procedure
Check whether the memory space is sufficient. If not, clear the memory and try again.
Check whether the system is normal. If not, try again later or restart the device.
Error Message
The callback does not exist.
Description
This error code is reported if a callback object to be unregistered does not exist.
Cause
The callback object has not been registered for activating a network or listening to network status changes.
Procedure
Before unregistering a callback object, make sure that it has been registered for activating a network or listening to network status changes.
Error Message
The callback already exists.
Description
This error code is reported if the same callback already exists.
Cause
The callback object has been registered for activating a network or listening to network status changes.
Procedure
Check whether the callback object has been registered.
If the callback object has been registered, use the registered callback object.
Error Message
The number of requests exceeded the maximum allowed.
Description
This error code is reported if the number of network requests exceeds the maximum.
Cause
The number of requests for activating a network or listening to network status changes has reached the maximum value.
The maximum number of 2.NetConnection.register interfaces has been reached.
Procedure
Locate the fault based on the "Over the max request number" log record.
After using NetConnection.register, call NetConnection.unregister to cancel the registered listener in a timely manner.
Error Message
Incorrect usage in non-VPN application.
Description
The API caller is not a VPN application.
Cause
The API caller is not a VPN application.
Procedure
Ensure that the API is called in a VPN application.
Error Message
The input network interface is incorrect.
Description
The NIC name passed in the API call is incorrect.
Cause
The NIC name passed in the API call is not an Ethernet NIC name such as eth0.
Procedure
Ensure that the NIC name is an Ethernet NIC name such as eth0.