diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index f3505732c..fdae1ea06 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -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; /** * 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;