修改错误码

Signed-off-by: xujie <xujie223@huawei.com>
This commit is contained in:
xujie 2023-06-06 13:35:48 +08:00
parent cf72da80ea
commit 1993986963
2 changed files with 8 additions and 4 deletions

View File

@ -485,6 +485,7 @@ declare namespace connection {
* Obtains the network independent global {@link HttpProxy} proxy settings.
* @param { AsyncCallback<HttpProxy> } 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<HttpProxy> } 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<void> } 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<void> } 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.

View File

@ -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