From 0a3ec533857d6198251f711b50e5156d771e4e4a Mon Sep 17 00:00:00 2001 From: zzz701 Date: Sat, 23 Aug 2025 15:57:10 +0800 Subject: [PATCH] =?UTF-8?q?BusinessError=E6=9E=84=E9=80=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zzz701 --- base_sdk/ets/@ohos.base.ets | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base_sdk/ets/@ohos.base.ets b/base_sdk/ets/@ohos.base.ets index b2576542..1f4f7529 100644 --- a/base_sdk/ets/@ohos.base.ets +++ b/base_sdk/ets/@ohos.base.ets @@ -16,7 +16,13 @@ export class BusinessError extends Error { code: int; data?: T; - + + constructor(code: int, message: string, data?: T) { + super(code, message); + this.data = data; + this.code = code; + } + constructor() { super(); this.code = 0; -- Gitee