1# oh_preferences_err_code.h 2 3 4## **Overview** 5 6Defines the error codes used in the **Preferences** module. 7 8**File to include**: <database/preferences/oh_preferences_err_code.h> 9 10**Library**: libohpreferences.so 11 12**System capability**: SystemCapability.DistributedDataManager.Preferences.Core 13 14**Since**: 13 15 16**Related module**: [Preferences](_preferences.md) 17 18 19## Summary 20 21 22### Types 23 24| Name| Description| 25| -------- | -------- | 26| typedef enum [OH_Preferences_ErrCode](_preferences.md#oh_preferences_errcode) [OH_Preferences_ErrCode](_preferences.md#oh_preferences_errcode) | Defines an enum for error codes. | 27 28 29### Enums 30 31| Name| Description| 32| -------- | -------- | 33| [OH_Preferences_ErrCode](_preferences.md#oh_preferences_errcode) {<br>PREFERENCES_OK = 0, PREFERENCES_ERROR_INVALID_PARAM = 401, PREFERENCES_ERROR_NOT_SUPPORTED = 801, PREFERENCES_ERROR_BASE = 15500000,<br>PREFERENCES_ERROR_DELETE_FILE = 15500010, PREFERENCES_ERROR_STORAGE = 15500011, PREFERENCES_ERROR_MALLOC = 15500012, PREFERENCES_ERROR_KEY_NOT_FOUND= 15500013,<br>PREFERENCES_ERROR_GET_DATAOBSMGRCLIENT = 15500019<br>} | Enumerates the error codes used in the **Preferences** module. | 34