mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
修改错误码
Signed-off-by: xujie <xujie223@huawei.com>
This commit is contained in:
parent
ab8b127a69
commit
f9ffb573af
11
api/@ohos.net.connection.d.ts
vendored
11
api/@ohos.net.connection.d.ts
vendored
@ -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>): 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>): void;
|
||||
|
Loading…
Reference in New Issue
Block a user