From 5a71e70dbff7c55cca322abdfb5b7475bbc070fa Mon Sep 17 00:00:00 2001 From: liyufan Date: Wed, 15 Feb 2023 17:04:28 +0800 Subject: [PATCH] delete unusing errorcode Signed-off-by: liyufan --- api/@ohos.net.connection.d.ts | 9 --------- api/@ohos.net.ethernet.d.ts | 1 - api/@ohos.net.sharing.d.ts | 5 ----- 3 files changed, 15 deletions(-) diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 6db93b904d..37935e7533 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -46,7 +46,6 @@ declare namespace connection { * returns {@code null} if the default network is not activated. * @permission ohos.permission.GET_NETWORK_INFO * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. */ @@ -76,7 +75,6 @@ declare namespace connection { * @param callback Returns the {@link NetHandle} object; returns {@code null} if no network is activated. * @permission ohos.permission.GET_NETWORK_INFO * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. */ @@ -124,7 +122,6 @@ declare namespace connection { * returns {@code false} otherwise. * @permission ohos.permission.GET_NETWORK_INFO * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. * @since 9 @@ -138,7 +135,6 @@ declare namespace connection { * @param callback Returns {@code true} if the default data network is activated; returns {@code false} otherwise. * @permission ohos.permission.GET_NETWORK_INFO * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. */ @@ -153,7 +149,6 @@ declare namespace connection { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. Only used for system app. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. */ @@ -168,7 +163,6 @@ declare namespace connection { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. Only used for system app. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. */ @@ -224,7 +218,6 @@ declare namespace connection { * @param callback Returns the {@link NetHandle} bound to the process; * returns {@code null} if no {@link NetHandle} is bound to the process. * For details, see {@link NetHandle}. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. * @since 9 @@ -237,7 +230,6 @@ declare namespace connection { * @returns { Promise } the promise returned by the function. * returns {@code null} if no {@link NetHandle} is bound to the process. * For details, see {@link NetHandle}. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. * @since 9 @@ -361,7 +353,6 @@ declare namespace connection { /** * Cancels listening for network status changes. - * @throws {BusinessError} 2100001 - Invalid parameter value. * @throws {BusinessError} 2100002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2100003 - System internal error. * @throws {BusinessError} 2101007 - The same callback exists. diff --git a/api/@ohos.net.ethernet.d.ts b/api/@ohos.net.ethernet.d.ts index af6e7258f9..127d892e88 100644 --- a/api/@ohos.net.ethernet.d.ts +++ b/api/@ohos.net.ethernet.d.ts @@ -80,7 +80,6 @@ declare namespace ethernet { * @permission ohos.permission.GET_NETWORK_INFO * @systemapi Hide this for inner system use. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2200001 - Invalid parameter value. * @throws {BusinessError} 2200002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2200003 - System internal error. */ diff --git a/api/@ohos.net.sharing.d.ts b/api/@ohos.net.sharing.d.ts index 68664456fe..d25015dcaa 100644 --- a/api/@ohos.net.sharing.d.ts +++ b/api/@ohos.net.sharing.d.ts @@ -30,7 +30,6 @@ declare namespace sharing { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2200001 - Invalid parameter value. * @throws {BusinessError} 2200002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2200003 - System internal error. * @throws {BusinessError} 2202011 - Cannot get network sharing configuration. @@ -45,7 +44,6 @@ declare namespace sharing { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2200001 - Invalid parameter value. * @throws {BusinessError} 2200002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2200003 - System internal error. * @throws {BusinessError} 2202011 - Cannot get network sharing configuration. @@ -101,7 +99,6 @@ declare namespace sharing { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2200001 - Invalid parameter value. * @throws {BusinessError} 2200002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2200003 - System internal error. */ @@ -115,7 +112,6 @@ declare namespace sharing { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2200001 - Invalid parameter value. * @throws {BusinessError} 2200002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2200003 - System internal error. */ @@ -129,7 +125,6 @@ declare namespace sharing { * @permission ohos.permission.CONNECTIVITY_INTERNAL * @systemapi Hide this for inner system use. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 2200001 - Invalid parameter value. * @throws {BusinessError} 2200002 - Operation failed. Cannot connect to service. * @throws {BusinessError} 2200003 - System internal error. */