diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 84576eeee742051a4a1807706e0eb3e49fe14f02..ca278ee446606b1c534f38fa16235d7c7160f58a 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -22,6 +22,7 @@ import socket from "./@ohos.net.socket"; * * @since 8 * @syscap SystemCapability.Communication.NetManager.Core + * @throws 9+ Will throw an error if the argument type or number is wrong */ declare namespace connection { type HttpRequest = http.HttpRequest; diff --git a/api/@ohos.net.http.d.ts b/api/@ohos.net.http.d.ts index ce56e5554957fe12ba729defb9f8c3e8ae6abfaa..33641ba1b90a2235939e9d11e56a050c19e7fdb5 100644 --- a/api/@ohos.net.http.d.ts +++ b/api/@ohos.net.http.d.ts @@ -20,6 +20,7 @@ import {AsyncCallback, Callback} from "./basic"; * * @since 6 * @syscap SystemCapability.Communication.NetStack + * @throws 9+ Will throw an error if the argument type or number is wrong */ declare namespace http { /** diff --git a/api/@ohos.net.socket.d.ts b/api/@ohos.net.socket.d.ts index 3fcdd5c8f99714b285935773210c22b68e1fa585..cea5f6a24a63770a8a06a595d0ffa875a485a0a4 100644 --- a/api/@ohos.net.socket.d.ts +++ b/api/@ohos.net.socket.d.ts @@ -22,6 +22,7 @@ import cryptoFramework from "./@ohos.security.cryptoFramework"; * * @since 7 * @syscap SystemCapability.Communication.NetStack + * @throws 9+ Will throw an error if the argument type or number is wrong */ declare namespace socket { export import NetAddress = connection.NetAddress; diff --git a/api/@ohos.net.webSocket.d.ts b/api/@ohos.net.webSocket.d.ts index cbb967bee4a57a447048c9ab4d135df7a8da7385..3c08289c5fef35d494e95b8605e3ed295addb538 100644 --- a/api/@ohos.net.webSocket.d.ts +++ b/api/@ohos.net.webSocket.d.ts @@ -20,6 +20,7 @@ import {AsyncCallback, ErrorCallback} from "./basic"; * * @since 6 * @syscap SystemCapability.Communication.NetStack + * @throws 9+ Will throw an error if the argument type or number is wrong */ declare namespace webSocket { /** @@ -123,4 +124,4 @@ declare namespace webSocket { } } -export default webSocket; \ No newline at end of file +export default webSocket;