• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Input Device Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6
7## 3900001 Device Not Exist
8
9**Error Message**
10
11The specified device does not exist.
12
13**Description**
14
15This error code is reported if the specified device cannot be found in the multimodal device list.
16
17**Possible Causes**
18
191. The ID of the input device has changed.
202. The physical connection of the input device is disconnected.
21
22**Procedure**
23
241. Use [inputDevice.getDeviceList](js-apis-inputdevice.md#inputdevicegetdevicelist9) to query the device ID, and then pass in the correct device ID.
252. Check whether the keyboard cable is disconnected.
26
27## 3900002 Keyboard Not Connected
28
29**Error Message**
30
31There is currently no keyboard device connected.
32
33**Description**
34
35No keyboard is connected.
36
37**Possible Causes**
38
39The physical connection of the input device is disconnected.
40
41**Procedure**
42
43Check whether the keyboard cable is disconnected.
44
45## 3900003 API Call Failed for a Non-Input Application
46
47**Error Message**
48
49it is prohibited for non-input applications.
50
51**Description**
52
53Non-input applications are not allowed to call this API.
54
55**Possible Causes**
56
57This API is not supported for a third-party application or a non-input system application.
58
59**Procedure**
60
61Use an input application to call this API.
62
63## 26500001 Invalid Window ID
64
65**Error Message**
66
67windowId is invalid.
68
69**Description**
70
71This error code is reported if the window ID is invalid.
72
73**Possible Causes**
74
75The window ID does not belong to the current application.
76
77**Procedure**
78
79Pass in the window ID of the current application. You can obtain the attributes of the current window by calling [getWindowProperties()](../apis-arkui/js-apis-window.md#getwindowproperties9). The window attributes contain the window ID.
80