From ae9144e4c4415952a7e4da90c197692f9a149231 Mon Sep 17 00:00:00 2001 From: leafly2021 Date: Thu, 27 Oct 2022 09:52:18 +0800 Subject: [PATCH] modify window and display error message Signed-off-by: leafly2021 Change-Id: I6017fdb63e21af51e81eea97c8489f70afb04ecb --- .../reference/apis/js-apis-display.md | 12 +- .../reference/apis/js-apis-screen.md | 36 +++--- .../reference/apis/js-apis-window.md | 116 +++++++++--------- .../reference/errorcodes/errorcode-display.md | 18 +-- .../reference/errorcodes/errorcode-window.md | 6 +- 5 files changed, 94 insertions(+), 94 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md index 9a81d18470..4e66809873 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -84,7 +84,7 @@ getDefaultDisplaySync(): Display | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -117,7 +117,7 @@ getAllDisplays(callback: AsyncCallback<Array<Display>>): void | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -153,7 +153,7 @@ getAllDisplays(): Promise<Array<Display>> | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -196,7 +196,7 @@ hasPrivateWindow(displayId: number): boolean | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** @@ -442,7 +442,7 @@ getCutoutInfo(callback: AsyncCallback<CutoutInfo>): void | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -481,7 +481,7 @@ getCutoutInfo(): Promise<CutoutInfo> | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-screen.md b/zh-cn/application-dev/reference/apis/js-apis-screen.md index b74622b0c9..910eb87a19 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screen.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screen.md @@ -34,7 +34,7 @@ getAllScreens(callback: AsyncCallback<Array<Screen>>): void | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -70,7 +70,7 @@ getAllScreens(): Promise<Array<Screen>> | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -162,7 +162,7 @@ makeExpand(options:Array<ExpandOption>, callback: AsyncCallback<number& | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -208,7 +208,7 @@ makeExpand(options:Array<ExpandOption>): Promise<number> | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -246,7 +246,7 @@ makeMirror(mainScreen:number, mirrorScreen:Array<number>, callback: AsyncC | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -293,7 +293,7 @@ makeMirror(mainScreen:number, mirrorScreen:Array<number>): Promise<numb | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -334,7 +334,7 @@ createVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback<Scre | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -388,7 +388,7 @@ createVirtualScreen(options:VirtualScreenOption): Promise<Screen> | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -433,7 +433,7 @@ destroyVirtualScreen(screenId:number, callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | ----------------------------- | -| 1400002 | This operation is not access. | +| 1400002 | Unauthorized operation. | **示例:** @@ -478,7 +478,7 @@ destroyVirtualScreen(screenId:number): Promise<void> | 错误码ID | 错误信息 | | ------- | ----------------------------- | -| 1400002 | This operation is not access. | +| 1400002 | Unauthorized operation. | **示例:** @@ -519,7 +519,7 @@ setVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallb | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -568,7 +568,7 @@ setVirtualScreenSurface(screenId:number, surfaceId: string): Promise<void> | 错误码ID | 错误信息 | | ------- | ----------------------- | -| 1400001 | This is invalid screen. | +| 1400001 | Invalid display or screen. | **示例:** @@ -764,7 +764,7 @@ setOrientation(orientation: Orientation, callback: AsyncCallback<void>): v | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** @@ -806,7 +806,7 @@ setOrientation(orientation: Orientation): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** @@ -842,7 +842,7 @@ setScreenActiveMode(modeIndex: number, callback: AsyncCallback<void>): voi | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** @@ -885,7 +885,7 @@ setScreenActiveMode(modeIndex: number): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** @@ -922,7 +922,7 @@ setDensityDpi(densityDpi: number, callback: AsyncCallback<void>): void; | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** @@ -965,7 +965,7 @@ setDensityDpi(densityDpi: number): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1400003 | This window manager service work abnormally. | +| 1400003 | This display manager service works abnormally. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-window.md b/zh-cn/application-dev/reference/apis/js-apis-window.md index 1bcd110c86..2e652be786 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -319,7 +319,7 @@ createWindow(config: Configuration, callback: AsyncCallback<Window>): void | 错误码ID | 错误信息 | | ------- | -------------------------------- | -| 1300001 | This is repeat operation. | +| 1300001 | Repeated operation. | | 1300006 | This window context is abnormal. | **示例:** @@ -346,7 +346,7 @@ try { createWindow(config: Configuration): Promise<Window> -创建子窗口,使用callback异步回调。 +创建子窗口,使用Promise异步回调。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -368,7 +368,7 @@ createWindow(config: Configuration): Promise<Window> | 错误码ID | 错误信息 | | ------- | -------------------------------- | -| 1300001 | This is repeat operation. | +| 1300001 | Repeated operation. | | 1300006 | This window context is abnormal. | **示例:** @@ -529,7 +529,7 @@ minimizeAll(id: number, callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -584,7 +584,7 @@ minimizeAll(id: number): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -633,7 +633,7 @@ toggleShownStateForAllAppWindows(callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -668,7 +668,7 @@ toggleShownStateForAllAppWindows(): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -703,7 +703,7 @@ setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback<void>) | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -748,7 +748,7 @@ setWindowLayoutMode(mode: WindowLayoutMode): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1283,8 +1283,8 @@ hideWithAnimation(callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | -| 1300004 | This operation is not access. | +| 1300003 | This window manager service works abnormally. | +| 1300004 | Unauthorized operation. | **示例:** @@ -1321,8 +1321,8 @@ hideWithAnimation(): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | -| 1300004 | This operation is not access. | +| 1300003 | This window manager service works abnormally. | +| 1300004 | Unauthorized operation. | **示例:** @@ -1425,8 +1425,8 @@ showWithAnimation(callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | -| 1300004 | This operation is not access. | +| 1300003 | This window manager service works abnormally. | +| 1300004 | Unauthorized operation. | **示例:** @@ -1463,8 +1463,8 @@ showWithAnimation(): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | -| 1300004 | This operation is not access. | +| 1300003 | This window manager service works abnormally. | +| 1300004 | Unauthorized operation. | **示例:** @@ -1498,7 +1498,7 @@ destroyWindow(callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1533,7 +1533,7 @@ destroyWindow(): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1569,7 +1569,7 @@ moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1615,7 +1615,7 @@ moveWindowTo(x: number, y: number): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1655,7 +1655,7 @@ resize(width: number, height: number, callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1701,7 +1701,7 @@ resize(width: number, height: number): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1742,7 +1742,7 @@ setWindowMode(mode: WindowMode, callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1790,7 +1790,7 @@ setWindowMode(mode: WindowMode): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1901,7 +1901,7 @@ setWindowLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback&l | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1947,7 +1947,7 @@ setWindowLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -1987,7 +1987,7 @@ setWindowSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncC | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2034,7 +2034,7 @@ setWindowSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2075,7 +2075,7 @@ setWindowSystemBarProperties(systemBarProperties: SystemBarProperties, callback: | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2127,7 +2127,7 @@ setWindowSystemBarProperties(systemBarProperties: SystemBarProperties): Promise& | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2257,7 +2257,7 @@ setUIContent(path: string, callback: AsyncCallback<void>): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2302,7 +2302,7 @@ setUIContent(path: string): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2344,7 +2344,7 @@ loadContent(path: string, storage: LocalStorage, callback: AsyncCallback<void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2395,7 +2395,7 @@ loadContent(path: string, storage: LocalStorage): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2800,7 +2800,7 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, c | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -2870,7 +2870,7 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>): | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3141,7 +3141,7 @@ setWindowBrightness(brightness: number, callback: AsyncCallback<void>): vo | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3187,7 +3187,7 @@ setWindowBrightness(brightness: number): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3227,7 +3227,7 @@ setWindowFocusable(isFocusable: boolean, callback: AsyncCallback<void>): v | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3273,7 +3273,7 @@ setWindowFocusable(isFocusable: boolean): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3313,7 +3313,7 @@ setWindowKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void&g | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3359,7 +3359,7 @@ setWindowKeepScreenOn(isKeepScreenOn: boolean): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3400,7 +3400,7 @@ setWakeUpScreen(wakeUp: boolean): void | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3555,7 +3555,7 @@ setWindowTouchable(isTouchable: boolean, callback: AsyncCallback<void>): v | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3601,7 +3601,7 @@ setWindowTouchable(isTouchable: boolean): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3643,7 +3643,7 @@ setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback<void&g | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3691,7 +3691,7 @@ setForbidSplitMove(isForbidSplitMove: boolean): Promise<void> | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | | 1300002 | This window state is abnormal. | -| 1300003 | This window manager service work abnormally. | +| 1300003 | This window manager service works abnormally. | **示例:** @@ -3801,7 +3801,7 @@ opacity(opacity: number): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -3836,7 +3836,7 @@ scale(scaleOptions: ScaleOptions): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -3877,7 +3877,7 @@ rotate(rotateOptions: RotateOptions): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -3919,7 +3919,7 @@ translate(translateOptions: TranslateOptions): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -3959,7 +3959,7 @@ try { | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -4021,7 +4021,7 @@ setBlur(radius: number): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -4056,7 +4056,7 @@ setBackdropBlur(radius: number): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -4091,7 +4091,7 @@ setBackdropBlurStyle(blurStyle: BlurStyle): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -4129,7 +4129,7 @@ setShadow(radius: number, color?: string, offsetX?: number, offsetY?: number): v | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** @@ -4164,7 +4164,7 @@ setCornerRadius(cornerRadius: number): void | 错误码ID | 错误信息 | | ------- | ------------------------------ | | 1300002 | This window state is abnormal. | -| 1300004 | This operation is not access. | +| 1300004 | Unauthorized operation. | **示例:** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-display.md b/zh-cn/application-dev/reference/errorcodes/errorcode-display.md index 166bb9d68f..2bcfa0750e 100755 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-display.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-display.md @@ -1,23 +1,23 @@ # 屏幕错误码 -## 1400001 无效虚拟屏 +## 1400001 无效的显示设备 **错误信息**
-This is invalid screen. +Invalid display or screen. **错误描述**
-当操作无效的虚拟屏时,会报此错误码。 +当操作无效的显示设备,包括虚拟屏时,会报此错误码。 -**可能原因** +**可能原因**
1. 虚拟屏未创建。 2. 虚拟屏已销毁。 -**处理步骤** +**处理步骤**
1. 在操作虚拟屏前,检查该虚拟屏是否已经存在,确保已创建该虚拟屏。 2. 在操作虚拟屏前,检查虚拟屏是否已被销毁,确保其未被销毁,再进行相关操作。 ## 1400002 无权限操作 **错误信息**
-This operation is not access. +Unauthorized operation. **错误描述**
当对无操作权限的对象进行操作时,会报此错误码。 @@ -30,13 +30,13 @@ This operation is not access. ## 1400003 系统服务工作异常 **错误信息**
-This window manager service work abnormally. +This display manager service works abnormally. **错误描述**
当系统服务工作异常时,会报此错误码。 -**可能原因** -1. 窗口内部服务没有正常启动。 +**可能原因**
+1. 屏幕管理服务没有正常启动。 2. 底层图形图像合成渲染异常。 **处理步骤**
diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-window.md b/zh-cn/application-dev/reference/errorcodes/errorcode-window.md index 3239f04eb5..257e3b7355 100755 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-window.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-window.md @@ -2,7 +2,7 @@ ## 1300001 重复操作 **错误信息**
-This is repeat operation. +Repeated operation. **错误描述**
当进行某些重复操作时,系统会报此错误码。 @@ -28,7 +28,7 @@ This window state is abnormal. ## 1300003 系统服务工作异常 **错误信息**
-This window manager service work abnormally. +This window manager service works abnormally. **错误描述**
当系统服务工作异常时,会报此错误码。 @@ -41,7 +41,7 @@ This window manager service work abnormally. ## 1300004 无权限操作 **错误信息**
-This operation is not access. +Unauthorized operation. **错误描述**
当对无操作权限的对象进行操作时,会报此错误码。 -- GitLab