mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
修改错误码
Signed-off-by: xujie <xujie223@huawei.com>
This commit is contained in:
parent
cf72da80ea
commit
1993986963
4
api/@ohos.net.connection.d.ts
vendored
4
api/@ohos.net.connection.d.ts
vendored
@ -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.
|
||||
|
8
api/@ohos.net.ethernet.d.ts
vendored
8
api/@ohos.net.ethernet.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user