diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index d6781a6b2..e25ee4d50 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -485,6 +485,7 @@ declare namespace connection { * Obtains the network independent global {@link HttpProxy} proxy settings. * @param { AsyncCallback } callback Returns the proxy settings. For details, see {@link HttpProxy}. * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 202 - Non-system applications use system APIs. * @throws { BusinessError } 2100002 - Operation failed. Cannot connect to service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core @@ -497,6 +498,7 @@ declare namespace connection { * Obtains the network independent global {@link HttpProxy} proxy settings. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 202 - Non-system applications use system APIs. * @throws { BusinessError } 2100002 - Operation failed. Cannot connect to service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core @@ -512,6 +514,7 @@ declare namespace connection { * @param { AsyncCallback } callback Returns the callback of setGlobalHttpProxy. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 202 - Non-system applications use system APIs. * @throws { BusinessError } 2100001 - Invalid parameter value. * @throws { BusinessError } 2100002 - Operation failed. Cannot connect to service. * @throws { BusinessError } 2100003 - System internal error. @@ -528,6 +531,7 @@ declare namespace connection { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. + * @throws { BusinessError } 202 - Non-system applications use system APIs. * @throws { BusinessError } 2100001 - Invalid parameter value. * @throws { BusinessError } 2100002 - Operation failed. Cannot connect to service. * @throws { BusinessError } 2100003 - System internal error. diff --git a/api/@ohos.net.ethernet.d.ts b/api/@ohos.net.ethernet.d.ts index 8d9e92727..017b0d7ab 100644 --- a/api/@ohos.net.ethernet.d.ts +++ b/api/@ohos.net.ethernet.d.ts @@ -172,9 +172,9 @@ declare namespace ethernet { * @param { 'interfaceStateChange' } type Indicates Event name. * @param { Callback<{ iface: string, active: boolean }> } callback including iface Indicates the ethernet interface, * and active Indicates whether the interface is active. - * @throws { BusinessError } 201 Permission denied. + * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 Parameter error. + * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Communication.NetManager.Ethernet * @systemapi Hide this for inner system use. * @since 10 @@ -187,9 +187,9 @@ declare namespace ethernet { * @param { 'interfaceStateChange' } type Indicates Event name. * @param { Callback<{ iface: string, active: boolean }> } callback including iface Indicates the ethernet interface, * and active Indicates whether the interface is active. - * @throws { BusinessError } 201 Permission denied. + * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 Parameter error. + * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Communication.NetManager.Ethernet * @systemapi Hide this for inner system use. * @since 10