From e94becf7d72e030125d80532da76dead7a68df05 Mon Sep 17 00:00:00 2001 From: Hayden Lee Date: Fri, 20 Jun 2025 15:51:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?showWindow=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=94=99=E8=AF=AF=E7=A0=81=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hayden Lee --- api/@ohos.window.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 112a81345c..45a51ed3b6 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4847,9 +4847,9 @@ declare namespace window { * * @param { ShowWindowOptions } options - options of window shown * @returns { Promise } Promise that returns no value. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. + * @throws { BusinessError } 1300016 - Parameter validation error. Possible cause: 1. The value of the parameter is out of the allowed range; + * 2. The length of the parameter exceeds the allowed length; + * 3. The parameter format is incorrect. * @throws { BusinessError } 801 - Capability not supported. Function showWindow can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. -- Gitee From 6cce62a8b4cb11eda41e119eafc44eef8ac553e6 Mon Sep 17 00:00:00 2001 From: Hayden Lee Date: Mon, 23 Jun 2025 14:51:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hayden Lee --- api/@ohos.window.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 45a51ed3b6..e5267fa624 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4847,12 +4847,12 @@ declare namespace window { * * @param { ShowWindowOptions } options - options of window shown * @returns { Promise } Promise that returns no value. - * @throws { BusinessError } 1300016 - Parameter validation error. Possible cause: 1. The value of the parameter is out of the allowed range; - * 2. The length of the parameter exceeds the allowed length; - * 3. The parameter format is incorrect. * @throws { BusinessError } 801 - Capability not supported. Function showWindow can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter validation error. Possible cause: 1. The value of the parameter is out of the allowed range; + * 2. The length of the parameter exceeds the allowed length; + * 3. The parameter format is incorrect. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 -- Gitee