1e41f4b71Sopenharmony_ci# USB Manager ChangeLog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.usb_manager.1 Error Information Return Method Change of APIs
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciThe USB manager API uses service logic return values to indicate the error information, which does not comply with the API error code specifications of OpenHarmony. Beginning from API version 9, error information is returned by throwing exceptions.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci**Change Impacts**
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ciThe application developed based on earlier versions needs to adapt the method for returning API error information. Otherwise, the original service logic will be affected.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci**Key API/Component Changes**
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ciChanged the USB module name from **@ohos.usb.d.ts** to **@ohos.usbV9.d.ts**, and added error code processing for all APIs in the module.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci**Adaptation Guide**
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ciTake the **getDevices** API as an example. The sample code is as follows:
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci```ts
20e41f4b71Sopenharmony_ciimport usbV9 from '@ohos.usbV9'
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_citry {
23e41f4b71Sopenharmony_ciusbV9.getDevices(); // If an improper parameter is passed to this API, an exception will be thrown.
24e41f4b71Sopenharmony_ci} catch (err) {
25e41f4b71Sopenharmony_ciconsole.error("getDevices errCode:" + err.code + ",errMessage:" + err.message);
26e41f4b71Sopenharmony_ci}
27e41f4b71Sopenharmony_ci```
28