From 3608d2e4e49ef26a3caecf639ee0d9324d62b968 Mon Sep 17 00:00:00 2001 From: ningning Date: Tue, 5 Sep 2023 10:32:58 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-update.md. Signed-off-by: ningning --- .../reference/apis/js-apis-update.md | 119 +++++------------- 1 file changed, 34 insertions(+), 85 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-update.md b/zh-cn/application-dev/reference/apis/js-apis-update.md index e2aa897422..f0d8466665 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-update.md +++ b/zh-cn/application-dev/reference/apis/js-apis-update.md @@ -39,13 +39,6 @@ getOnlineUpdater(upgradeInfo: UpgradeInfo): Updater | ------------------- | ---- | | [Updater](#updater) | 升级对象。 | -**错误码**: - -以下的错误码的详细介绍请参见[升级错误码](../errorcodes/errorcode-update.md) - -| 错误码ID | 错误信息 | -| ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | **示例:** @@ -79,14 +72,6 @@ getRestorer(): Restorer | --------------------- | ------ | | [Restorer](#restorer) | 恢复出厂对象。 | -**错误码**: - -以下的错误码的详细介绍请参见[升级错误码](../errorcodes/errorcode-update.md) - -| 错误码ID | 错误信息 | -| ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | - **示例:** ```ts @@ -111,13 +96,6 @@ getLocalUpdater(): LocalUpdater | ----------------------------- | ------ | | [LocalUpdater](#localupdater) | 本地升级对象。 | -**错误码**: - -以下的错误码的详细介绍请参见[升级错误码](../errorcodes/errorcode-update.md) - -| 错误码ID | 错误信息 | -| ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | **示例:** @@ -153,7 +131,7 @@ checkNewVersion(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -185,7 +163,7 @@ checkNewVersion(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -221,7 +199,7 @@ getNewVersionInfo(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -254,7 +232,7 @@ getNewVersionInfo(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -291,7 +269,7 @@ getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOption | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -342,7 +320,7 @@ getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOption | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -387,7 +365,7 @@ getCurrentVersionInfo(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -421,7 +399,7 @@ getCurrentVersionInfo(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -458,7 +436,7 @@ getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: A | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -503,7 +481,7 @@ getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -575,7 +553,7 @@ getTaskInfo(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -611,7 +589,7 @@ download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions, | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -660,7 +638,7 @@ download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions) | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -706,7 +684,7 @@ resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: Resu | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -754,7 +732,7 @@ resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: Resu | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -799,7 +777,7 @@ pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseD | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -847,7 +825,7 @@ pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseD | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -892,7 +870,7 @@ upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions, ca | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -940,7 +918,7 @@ upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions): P | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -985,7 +963,7 @@ clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions, cal | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1033,7 +1011,7 @@ clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions): Pr | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1076,7 +1054,7 @@ getUpgradePolicy(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1109,7 +1087,7 @@ getUpgradePolicy(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1145,7 +1123,7 @@ setUpgradePolicy(policy: UpgradePolicy, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1188,7 +1166,7 @@ setUpgradePolicy(policy: UpgradePolicy): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1227,7 +1205,7 @@ terminateUpgrade(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1259,7 +1237,7 @@ terminateUpgrade(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1286,13 +1264,6 @@ on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): voi | eventClassifyInfo | [EventClassifyInfo](#eventclassifyinfo) | 是 | 事件信息。 | | taskCallback | [UpgradeTaskCallback](#upgradetaskcallback) | 是 | 事件回调。 | -**错误码**: - -以下的错误码的详细介绍请参见[升级错误码](../errorcodes/errorcode-update.md) - -| 错误码ID | 错误信息 | -| ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | **示例:** @@ -1321,14 +1292,6 @@ off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): v | eventClassifyInfo | [EventClassifyInfo](#eventclassifyinfo) | 是 | 事件信息。 | | taskCallback | [UpgradeTaskCallback](#upgradetaskcallback) | 否 | 事件回调。 | -**错误码**: - -以下的错误码的详细介绍请参见[升级错误码](../errorcodes/errorcode-update.md) - -| 错误码ID | 错误信息 | -| ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | - **示例:** ```ts @@ -1366,7 +1329,7 @@ factoryReset(callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1398,7 +1361,7 @@ factoryReset(): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1436,7 +1399,7 @@ verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string, callback: Asyn | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1480,7 +1443,7 @@ verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string): Promise\, callback: Asyn | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------- | -| 11500104 | BusinessError 11500104: IPC error. | +| 11500104 | IPC error. | **示例:** @@ -1555,7 +1518,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\