From 38908c1e2711b0ce0b49221ede2cf2df6d641d05 Mon Sep 17 00:00:00 2001 From: zzz701 Date: Mon, 25 Aug 2025 10:09:49 +0800 Subject: [PATCH] =?UTF-8?q?BusinessError=E6=9E=84=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zzz701 --- api/@ohos.base.static.d.ets | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.base.static.d.ets b/api/@ohos.base.static.d.ets index 3e22da2fda..e162b637ff 100644 --- a/api/@ohos.base.static.d.ets +++ b/api/@ohos.base.static.d.ets @@ -51,6 +51,15 @@ * @since 20 */ export declare class BusinessError extends Error { + /** + * A constructor used to create a BusinessError object + * @param { int } code + * @param { string } message + * @param { T? } [data] + * @syscap SystemCapability.Base + * @since 20 + */ + constructor(code: int, message: string, data?: T); /** * A constructor used to create a BusinessError object * @syscap SystemCapability.Base -- Gitee