1# oh_preferences_err_code.h 2<!--Kit: ArkData--> 3<!--Subsystem: DistributedDataManager--> 4<!--Owner: @yanhuii--> 5<!--Designer: @houpengtao1--> 6<!--Tester: @yippo; @logic42--> 7<!--Adviser: @ge-yafang--> 8 9## 概述 10 11声明首选项模块统一使用的错误码信息。 12 13**引用文件:** <database/preferences/oh_preferences_err_code.h> 14 15**库:** libohpreferences.so 16 17**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core 18 19**起始版本:** 13 20 21**相关模块:** [Preferences](capi-preferences.md) 22 23## 汇总 24 25### 枚举 26 27| 名称 | typedef关键字 | 描述 | 28| ------------------------------------------------- | ---------------------- | ------------ | 29| [OH_Preferences_ErrCode](#oh_preferences_errcode) | OH_Preferences_ErrCode | 错误码信息。 | 30 31## 枚举类型说明 32 33### OH_Preferences_ErrCode 34 35``` 36enum OH_Preferences_ErrCode 37``` 38 39**描述** 40 41错误码信息。 42 43**起始版本:** 13 44 45| 枚举项 | 描述 | 46| ------------------------------------------------- | -------------------------- | 47| PREFERENCES_OK = 0 | 操作执行成功。 | 48| PREFERENCES_ERROR_INVALID_PARAM = 401 | 参数不合法。 | 49| PREFERENCES_ERROR_NOT_SUPPORTED = 801 | 系统能力不支持。 | 50| PREFERENCES_ERROR_BASE = 15500000 | 基准错误码。 | 51| PREFERENCES_ERROR_DELETE_FILE = 15500010 | 删除文件失败。 | 52| PREFERENCES_ERROR_STORAGE = 15500011 | 存储异常。 | 53| PREFERENCES_ERROR_MALLOC = 15500012 | 申请内存失败。 | 54| PREFERENCES_ERROR_KEY_NOT_FOUND = 15500013 | Key不存在。 | 55| PREFERENCES_ERROR_GET_DATAOBSMGRCLIENT = 15500019 | 获取数据变更订阅服务失败。 | 56 57