提交 ae9144e4 编写于 作者: L leafly2021

modify window and display error message

Signed-off-by: Nleafly2021 <figo.yefei@huawei.com>
Change-Id: I6017fdb63e21af51e81eea97c8489f70afb04ecb
上级 a6f904e4
...@@ -84,7 +84,7 @@ getDefaultDisplaySync(): Display ...@@ -84,7 +84,7 @@ getDefaultDisplaySync(): Display
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -117,7 +117,7 @@ getAllDisplays(callback: AsyncCallback&lt;Array&lt;Display&gt;&gt;): void ...@@ -117,7 +117,7 @@ getAllDisplays(callback: AsyncCallback&lt;Array&lt;Display&gt;&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -153,7 +153,7 @@ getAllDisplays(): Promise&lt;Array&lt;Display&gt;&gt; ...@@ -153,7 +153,7 @@ getAllDisplays(): Promise&lt;Array&lt;Display&gt;&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -196,7 +196,7 @@ hasPrivateWindow(displayId: number): boolean ...@@ -196,7 +196,7 @@ hasPrivateWindow(displayId: number): boolean
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
...@@ -442,7 +442,7 @@ getCutoutInfo(callback: AsyncCallback&lt;CutoutInfo&gt;): void ...@@ -442,7 +442,7 @@ getCutoutInfo(callback: AsyncCallback&lt;CutoutInfo&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -481,7 +481,7 @@ getCutoutInfo(): Promise&lt;CutoutInfo&gt; ...@@ -481,7 +481,7 @@ getCutoutInfo(): Promise&lt;CutoutInfo&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
......
...@@ -34,7 +34,7 @@ getAllScreens(callback: AsyncCallback&lt;Array&lt;Screen&gt;&gt;): void ...@@ -34,7 +34,7 @@ getAllScreens(callback: AsyncCallback&lt;Array&lt;Screen&gt;&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -70,7 +70,7 @@ getAllScreens(): Promise&lt;Array&lt;Screen&gt;&gt; ...@@ -70,7 +70,7 @@ getAllScreens(): Promise&lt;Array&lt;Screen&gt;&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -162,7 +162,7 @@ makeExpand(options:Array&lt;ExpandOption&gt;, callback: AsyncCallback&lt;number& ...@@ -162,7 +162,7 @@ makeExpand(options:Array&lt;ExpandOption&gt;, callback: AsyncCallback&lt;number&
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -208,7 +208,7 @@ makeExpand(options:Array&lt;ExpandOption&gt;): Promise&lt;number&gt; ...@@ -208,7 +208,7 @@ makeExpand(options:Array&lt;ExpandOption&gt;): Promise&lt;number&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -246,7 +246,7 @@ makeMirror(mainScreen:number, mirrorScreen:Array&lt;number&gt;, callback: AsyncC ...@@ -246,7 +246,7 @@ makeMirror(mainScreen:number, mirrorScreen:Array&lt;number&gt;, callback: AsyncC
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -293,7 +293,7 @@ makeMirror(mainScreen:number, mirrorScreen:Array&lt;number&gt;): Promise&lt;numb ...@@ -293,7 +293,7 @@ makeMirror(mainScreen:number, mirrorScreen:Array&lt;number&gt;): Promise&lt;numb
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -334,7 +334,7 @@ createVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback&lt;Scre ...@@ -334,7 +334,7 @@ createVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback&lt;Scre
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -388,7 +388,7 @@ createVirtualScreen(options:VirtualScreenOption): Promise&lt;Screen&gt; ...@@ -388,7 +388,7 @@ createVirtualScreen(options:VirtualScreenOption): Promise&lt;Screen&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -433,7 +433,7 @@ destroyVirtualScreen(screenId:number, callback: AsyncCallback&lt;void&gt;): void ...@@ -433,7 +433,7 @@ destroyVirtualScreen(screenId:number, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------------- | | ------- | ----------------------------- |
| 1400002 | This operation is not access. | | 1400002 | Unauthorized operation. |
**示例:** **示例:**
...@@ -478,7 +478,7 @@ destroyVirtualScreen(screenId:number): Promise&lt;void&gt; ...@@ -478,7 +478,7 @@ destroyVirtualScreen(screenId:number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------------- | | ------- | ----------------------------- |
| 1400002 | This operation is not access. | | 1400002 | Unauthorized operation. |
**示例:** **示例:**
...@@ -519,7 +519,7 @@ setVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallb ...@@ -519,7 +519,7 @@ setVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallb
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -568,7 +568,7 @@ setVirtualScreenSurface(screenId:number, surfaceId: string): Promise&lt;void&gt; ...@@ -568,7 +568,7 @@ setVirtualScreenSurface(screenId:number, surfaceId: string): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ----------------------- | | ------- | ----------------------- |
| 1400001 | This is invalid screen. | | 1400001 | Invalid display or screen. |
**示例:** **示例:**
...@@ -764,7 +764,7 @@ setOrientation(orientation: Orientation, callback: AsyncCallback&lt;void&gt;): v ...@@ -764,7 +764,7 @@ setOrientation(orientation: Orientation, callback: AsyncCallback&lt;void&gt;): v
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
...@@ -806,7 +806,7 @@ setOrientation(orientation: Orientation): Promise&lt;void&gt; ...@@ -806,7 +806,7 @@ setOrientation(orientation: Orientation): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
...@@ -842,7 +842,7 @@ setScreenActiveMode(modeIndex: number, callback: AsyncCallback&lt;void&gt;): voi ...@@ -842,7 +842,7 @@ setScreenActiveMode(modeIndex: number, callback: AsyncCallback&lt;void&gt;): voi
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
...@@ -885,7 +885,7 @@ setScreenActiveMode(modeIndex: number): Promise&lt;void&gt; ...@@ -885,7 +885,7 @@ setScreenActiveMode(modeIndex: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
...@@ -922,7 +922,7 @@ setDensityDpi(densityDpi: number, callback: AsyncCallback&lt;void&gt;): void; ...@@ -922,7 +922,7 @@ setDensityDpi(densityDpi: number, callback: AsyncCallback&lt;void&gt;): void;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
...@@ -965,7 +965,7 @@ setDensityDpi(densityDpi: number): Promise&lt;void&gt; ...@@ -965,7 +965,7 @@ setDensityDpi(densityDpi: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1400003 | This window manager service work abnormally. | | 1400003 | This display manager service works abnormally. |
**示例:** **示例:**
......
...@@ -319,7 +319,7 @@ createWindow(config: Configuration, callback: AsyncCallback&lt;Window&gt;): void ...@@ -319,7 +319,7 @@ createWindow(config: Configuration, callback: AsyncCallback&lt;Window&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------- | | ------- | -------------------------------- |
| 1300001 | This is repeat operation. | | 1300001 | Repeated operation. |
| 1300006 | This window context is abnormal. | | 1300006 | This window context is abnormal. |
**示例:** **示例:**
...@@ -346,7 +346,7 @@ try { ...@@ -346,7 +346,7 @@ try {
createWindow(config: Configuration): Promise&lt;Window&gt; createWindow(config: Configuration): Promise&lt;Window&gt;
创建子窗口,使用callback异步回调。 创建子窗口,使用Promise异步回调。
**系统能力:** SystemCapability.WindowManager.WindowManager.Core **系统能力:** SystemCapability.WindowManager.WindowManager.Core
...@@ -368,7 +368,7 @@ createWindow(config: Configuration): Promise&lt;Window&gt; ...@@ -368,7 +368,7 @@ createWindow(config: Configuration): Promise&lt;Window&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------- | | ------- | -------------------------------- |
| 1300001 | This is repeat operation. | | 1300001 | Repeated operation. |
| 1300006 | This window context is abnormal. | | 1300006 | This window context is abnormal. |
**示例:** **示例:**
...@@ -529,7 +529,7 @@ minimizeAll(id: number, callback: AsyncCallback&lt;void&gt;): void ...@@ -529,7 +529,7 @@ minimizeAll(id: number, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
**示例:** **示例:**
...@@ -584,7 +584,7 @@ minimizeAll(id: number): Promise&lt;void&gt; ...@@ -584,7 +584,7 @@ minimizeAll(id: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
**示例:** **示例:**
...@@ -633,7 +633,7 @@ toggleShownStateForAllAppWindows(callback: AsyncCallback&lt;void&gt;): void ...@@ -633,7 +633,7 @@ toggleShownStateForAllAppWindows(callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
**示例:** **示例:**
...@@ -668,7 +668,7 @@ toggleShownStateForAllAppWindows(): Promise&lt;void&gt; ...@@ -668,7 +668,7 @@ toggleShownStateForAllAppWindows(): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
**示例:** **示例:**
...@@ -703,7 +703,7 @@ setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback&lt;void&gt;) ...@@ -703,7 +703,7 @@ setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback&lt;void&gt;)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
**示例:** **示例:**
...@@ -748,7 +748,7 @@ setWindowLayoutMode(mode: WindowLayoutMode): Promise&lt;void&gt; ...@@ -748,7 +748,7 @@ setWindowLayoutMode(mode: WindowLayoutMode): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
**示例:** **示例:**
...@@ -1283,8 +1283,8 @@ hideWithAnimation(callback: AsyncCallback&lt;void&gt;): void ...@@ -1283,8 +1283,8 @@ hideWithAnimation(callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -1321,8 +1321,8 @@ hideWithAnimation(): Promise&lt;void&gt; ...@@ -1321,8 +1321,8 @@ hideWithAnimation(): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -1425,8 +1425,8 @@ showWithAnimation(callback: AsyncCallback&lt;void&gt;): void ...@@ -1425,8 +1425,8 @@ showWithAnimation(callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -1463,8 +1463,8 @@ showWithAnimation(): Promise&lt;void&gt; ...@@ -1463,8 +1463,8 @@ showWithAnimation(): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300003 | This window manager service work abnormally. | | 1300003 | This window manager service works abnormally. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -1498,7 +1498,7 @@ destroyWindow(callback: AsyncCallback&lt;void&gt;): void ...@@ -1498,7 +1498,7 @@ destroyWindow(callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -1533,7 +1533,7 @@ destroyWindow(): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): void ...@@ -1569,7 +1569,7 @@ moveWindowTo(x: number, y: number, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -1615,7 +1615,7 @@ moveWindowTo(x: number, y: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): void ...@@ -1655,7 +1655,7 @@ resize(width: number, height: number, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -1701,7 +1701,7 @@ resize(width: number, height: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): void ...@@ -1742,7 +1742,7 @@ setWindowMode(mode: WindowMode, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -1790,7 +1790,7 @@ setWindowMode(mode: WindowMode): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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 ...@@ -1901,7 +1901,7 @@ setWindowLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback&l
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -1947,7 +1947,7 @@ setWindowLayoutFullScreen(isLayoutFullScreen: boolean): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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 ...@@ -1987,7 +1987,7 @@ setWindowSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncC
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void ...@@ -2034,7 +2034,7 @@ setWindowSystemBarEnable(names: Array<'status' | 'navigation'>): Promise&lt;void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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: ...@@ -2075,7 +2075,7 @@ setWindowSystemBarProperties(systemBarProperties: SystemBarProperties, callback:
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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& ...@@ -2127,7 +2127,7 @@ setWindowSystemBarProperties(systemBarProperties: SystemBarProperties): Promise&
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): void ...@@ -2257,7 +2257,7 @@ setUIContent(path: string, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -2302,7 +2302,7 @@ setUIContent(path: string): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void ...@@ -2344,7 +2344,7 @@ loadContent(path: string, storage: LocalStorage, callback: AsyncCallback&lt;void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -2395,7 +2395,7 @@ loadContent(path: string, storage: LocalStorage): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;, c ...@@ -2800,7 +2800,7 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback&lt;void&gt;, c
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): ...@@ -2870,7 +2870,7 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback&lt;void&gt;):
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): vo ...@@ -3141,7 +3141,7 @@ setWindowBrightness(brightness: number, callback: AsyncCallback&lt;void&gt;): vo
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -3187,7 +3187,7 @@ setWindowBrightness(brightness: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): v ...@@ -3227,7 +3227,7 @@ setWindowFocusable(isFocusable: boolean, callback: AsyncCallback&lt;void&gt;): v
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -3273,7 +3273,7 @@ setWindowFocusable(isFocusable: boolean): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&g ...@@ -3313,7 +3313,7 @@ setWindowKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback&lt;void&g
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -3359,7 +3359,7 @@ setWindowKeepScreenOn(isKeepScreenOn: boolean): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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 ...@@ -3400,7 +3400,7 @@ setWakeUpScreen(wakeUp: boolean): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt;): v ...@@ -3555,7 +3555,7 @@ setWindowTouchable(isTouchable: boolean, callback: AsyncCallback&lt;void&gt;): v
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -3601,7 +3601,7 @@ setWindowTouchable(isTouchable: boolean): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&g ...@@ -3643,7 +3643,7 @@ setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback&lt;void&g
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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&lt;void&gt; ...@@ -3691,7 +3691,7 @@ setForbidSplitMove(isForbidSplitMove: boolean): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | -------------------------------------------- | | ------- | -------------------------------------------- |
| 1300002 | This window state is abnormal. | | 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 ...@@ -3801,7 +3801,7 @@ opacity(opacity: number): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -3836,7 +3836,7 @@ scale(scaleOptions: ScaleOptions): void ...@@ -3836,7 +3836,7 @@ scale(scaleOptions: ScaleOptions): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -3877,7 +3877,7 @@ rotate(rotateOptions: RotateOptions): void ...@@ -3877,7 +3877,7 @@ rotate(rotateOptions: RotateOptions): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -3919,7 +3919,7 @@ translate(translateOptions: TranslateOptions): void ...@@ -3919,7 +3919,7 @@ translate(translateOptions: TranslateOptions): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -3959,7 +3959,7 @@ try { ...@@ -3959,7 +3959,7 @@ try {
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -4021,7 +4021,7 @@ setBlur(radius: number): void ...@@ -4021,7 +4021,7 @@ setBlur(radius: number): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -4056,7 +4056,7 @@ setBackdropBlur(radius: number): void ...@@ -4056,7 +4056,7 @@ setBackdropBlur(radius: number): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -4091,7 +4091,7 @@ setBackdropBlurStyle(blurStyle: BlurStyle): void ...@@ -4091,7 +4091,7 @@ setBackdropBlurStyle(blurStyle: BlurStyle): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 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 ...@@ -4129,7 +4129,7 @@ setShadow(radius: number, color?: string, offsetX?: number, offsetY?: number): v
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
...@@ -4164,7 +4164,7 @@ setCornerRadius(cornerRadius: number): void ...@@ -4164,7 +4164,7 @@ setCornerRadius(cornerRadius: number): void
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| ------- | ------------------------------ | | ------- | ------------------------------ |
| 1300002 | This window state is abnormal. | | 1300002 | This window state is abnormal. |
| 1300004 | This operation is not access. | | 1300004 | Unauthorized operation. |
**示例:** **示例:**
......
# 屏幕错误码 # 屏幕错误码
## 1400001 无效虚拟屏 ## 1400001 无效的显示设备
**错误信息**<br> **错误信息**<br>
This is invalid screen. Invalid display or screen.
**错误描述**<br> **错误描述**<br>
当操作无效的虚拟屏时,会报此错误码。 当操作无效的显示设备,包括虚拟屏时,会报此错误码。
**可能原因** **可能原因**<br>
1. 虚拟屏未创建。 1. 虚拟屏未创建。
2. 虚拟屏已销毁。 2. 虚拟屏已销毁。
**处理步骤** **处理步骤**<br>
1. 在操作虚拟屏前,检查该虚拟屏是否已经存在,确保已创建该虚拟屏。 1. 在操作虚拟屏前,检查该虚拟屏是否已经存在,确保已创建该虚拟屏。
2. 在操作虚拟屏前,检查虚拟屏是否已被销毁,确保其未被销毁,再进行相关操作。 2. 在操作虚拟屏前,检查虚拟屏是否已被销毁,确保其未被销毁,再进行相关操作。
## 1400002 无权限操作 ## 1400002 无权限操作
**错误信息**<br> **错误信息**<br>
This operation is not access. Unauthorized operation.
**错误描述**<br> **错误描述**<br>
当对无操作权限的对象进行操作时,会报此错误码。 当对无操作权限的对象进行操作时,会报此错误码。
...@@ -30,13 +30,13 @@ This operation is not access. ...@@ -30,13 +30,13 @@ This operation is not access.
## 1400003 系统服务工作异常 ## 1400003 系统服务工作异常
**错误信息**<br> **错误信息**<br>
This window manager service work abnormally. This display manager service works abnormally.
**错误描述**<br> **错误描述**<br>
当系统服务工作异常时,会报此错误码。 当系统服务工作异常时,会报此错误码。
**可能原因** **可能原因**<br>
1. 窗口内部服务没有正常启动。 1. 屏幕管理服务没有正常启动。
2. 底层图形图像合成渲染异常。 2. 底层图形图像合成渲染异常。
**处理步骤**<br> **处理步骤**<br>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## 1300001 重复操作 ## 1300001 重复操作
**错误信息**<br> **错误信息**<br>
This is repeat operation. Repeated operation.
**错误描述**<br> **错误描述**<br>
当进行某些重复操作时,系统会报此错误码。 当进行某些重复操作时,系统会报此错误码。
...@@ -28,7 +28,7 @@ This window state is abnormal. ...@@ -28,7 +28,7 @@ This window state is abnormal.
## 1300003 系统服务工作异常 ## 1300003 系统服务工作异常
**错误信息**<br> **错误信息**<br>
This window manager service work abnormally. This window manager service works abnormally.
**错误描述**<br> **错误描述**<br>
当系统服务工作异常时,会报此错误码。 当系统服务工作异常时,会报此错误码。
...@@ -41,7 +41,7 @@ This window manager service work abnormally. ...@@ -41,7 +41,7 @@ This window manager service work abnormally.
## 1300004 无权限操作 ## 1300004 无权限操作
**错误信息**<br> **错误信息**<br>
This operation is not access. Unauthorized operation.
**错误描述**<br> **错误描述**<br>
当对无操作权限的对象进行操作时,会报此错误码。 当对无操作权限的对象进行操作时,会报此错误码。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册