修改错误码

Signed-off-by: xujie <xujie223@huawei.com>
This commit is contained in:
xujie 2023-05-06 13:50:00 +08:00
parent ab8b127a69
commit f9ffb573af

View File

@ -552,28 +552,21 @@ declare namespace connection {
* @permission ohos.permission.GET_NETWORK_INFO
* @throws {BusinessError} 201 - Permission denied.
* @throws {BusinessError} 401 - Parameter error.
* @throws {BusinessError} 2100001 - Invalid parameter value.
* @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service.
* @throws {BusinessError} 2100003 - System internal error.
* @throws {BusinessError} 2100105 - The parameter of netSpecifier or callback is nullptr.
* @throws {BusinessError} 2100202 - WriteInterfaceToken failed.
* @throws {BusinessError} 2100207 - Remote is null.
* @throws {BusinessError} 2100208 - The parameter of proxy is nullptr.
* @throws {BusinessError} 2101008 - The callback is not found.
* @throws {BusinessError} 2101022 - The number of requests exceeded the maximum.
* @throws {BusinessError} 2101007 - The same callback exists.
* @since 8
*/
register(callback: AsyncCallback<void>): void;
/**
* Cancels listening for network status changes.
* @throws {BusinessError} 201 - Permission denied.
* @throws {BusinessError} 401 - Parameter error.
* @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service.
* @throws {BusinessError} 2100003 - System internal error.
* @throws {BusinessError} 2101008 - RegisterNetConnCallback find same callback.
* @throws {BusinessError} 2100207 - Remote is null.
* @throws {BusinessError} 2100202 - WriteInterfaceToken failed.
* @throws {BusinessError} 2100105 - The parameter of netSpecifier or callback is nullptr.
* @since 8
*/
unregister(callback: AsyncCallback<void>): void;