This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Repeated operation.
Description
This error code is reported when a repeated operation is performed.
Possible Causes
The window to create already exists.
Solution
Before creating a window, check whether the window already exists. If it already exists, use it directly.
Error Message
This window state is abnormal.
Description
This error code is reported when you operate a window in an abnormal state, for example, a window that is not created yet or has been destroyed.
Possible Causes
The window to operate is not created or has been destroyed.
Solution
Operate the window that exists.
Error Message
This window manager service works abnormally.
Description
This error code is reported when the window manager service is abnormal.
Possible Causes
The internal services of the window are not started normally.
Solution
Try again later or restart the device.
Error Message
Unauthorized operation.
Description
This error code is reported when the API does not have the required permissions to operate an object.
Possible Causes
The window object of another process is operated.
Solution
Check whether unauthorized operations are performed on the object of another process. If yes, delete the operations.
Error Message
This window stage is abnormal.
Description
This error code is reported when you operate a window stage in the abnormal state, for example, a window stage that has been destroyed.
Possible Causes
The window stage has been destroyed when being operated.
Solution
Before operating a window stage, check whether it exists.
Error Message
This window context is abnormal.
Description
This error code is reported when you operate a window context in the abnormal state, for example, a window context that has been destroyed.
Possible Causes
The window context has been destroyed when being operated.
Solution
Before operating the window context, check whether it exists.
Error Message
Failed to start the ability.
Description
This error code is reported when a WindowExtensionAbility fails to start an application.
Possible Causes
Incorrect parameters are passed into the API used by the WindowExtensionAbility to start the application.
Solution
Pass in the correct parameters.
Error Message
The display device is abnormal.
Description
This error code is reported when the display device is abnormal.
Possible Causes
Solution
Ensure that the display device is normal.
Error Message
The parent window is invalid.
Description
This error code is reported when the parent window is invalid.
Possible Causes
Solution
Error Message
The operation is not supported in full-screen mode.
Description
This error code is reported when you perform an invalid operation in the full-screen window.
Possible Causes
Solution
Error Message
Failed to destroy the PiP window.
Description
This error code is reported when destroying a PiP window fails.
Possible Causes
The pointer to the PiP window is null.
Solution
No action is required.
Error Message
The PiP window state is abnormal.
Description
This error code is reported when the PiP window status is abnormal.
Possible Causes
The PiP window status is abnormal.
Solution
No action is required.
Error Message
Failed to create the PiP window.
Description
This error code is reported when creating a PiP window fails.
Possible Causes
Solution
Error Message
PiP internal error.
Description
This error code is reported when an internal error occurs in PiP.
Possible Causes
An internal error occurs.
Solution
No action is required.
Error Message
Repeated PiP operation.
Description
This error code is reported when a repeated PiP operation is performed.
Possible Causes
You attempt to start PiP when it is already started or stop it when it is already stopped.
Solution
Do not start or stop PiP repeatedly.
Error Message
A window null pointer occurs.
Description
This error code is reported when you operate a window pointed to by a null pointer.
Possible Causes
A null pointer is used.
Solution
Operate the window that exists.
Error Message
This window type is invalid.
Description
This error code is reported when the window type is invalid.
Possible Causes
An invalid window type is used. For details about valid window types, see WindowType.
Solution
Use a window type supported.
Error Message
This window parameter is invalid.
Description
This error code is reported when a window parameter is invalid.
Possible Causes
Invalid parameters are passed in.
Solution
Correct the parameters.
Error Message
This system ability service works abnormally.
Description
This error code is reported when the ability service is abnormal.
Possible Causes
When the window is destroyed, the proxy fails to be initialized.
Solution
Restart the device and try again.
Error Message
This window IPC failed.
Description
This error code is reported when IPC fails.
Possible Causes
The window parameters fail to be transferred.
Solution
Before operating a window, ensure that the client and server services in the window are normal.
Error Message
Failed to start the ability.
Description
This error code is reported when a WindowExtensionAbility fails to start an application.
Possible Causes
Incorrect parameters are passed into the API used by the WindowExtensionAbility to start the application.
Solution
Pass in the correct parameters.