openharmony 鸿蒙 capi-oh-preferences-err-code-h

2026-08-25 浏览 (1)

oh_preferences_err_code.h

Overview

Defines the error codes used in the Preferences module.

File to include: <database/preferences/oh_preferences_err_code.h>

Library: libohpreferences.so

System capability: SystemCapability.DistributedDataManager.Preferences.Core

Since: 13

Related module: Preferences

Summary

Enums

Nametypedef KeywordDescription
OH_Preferences_ErrCodeOH_Preferences_ErrCodeEnumerates the error codes.

Enum Description

OH_Preferences_ErrCode

enum OH_Preferences_ErrCode

Description

Enumerates the error codes.

Since: 13

Enum ItemDescription
PREFERENCES_OK = 0The operation is successful.
PREFERENCES_ERROR_INVALID_PARAM = 401Invalid parameter.
PREFERENCES_ERROR_NOT_SUPPORTED = 801The system capability is not supported.
PREFERENCES_ERROR_BASE = 15500000Base error code.
PREFERENCES_ERROR_DELETE_FILE = 15500010Failed to delete the file.
PREFERENCES_ERROR_STORAGE = 15500011The storage is abnormal.
PREFERENCES_ERROR_MALLOC = 15500012Memory allocation fails.
PREFERENCES_ERROR_KEY_NOT_FOUND = 15500013The key does not exist.
PREFERENCES_ERROR_GET_DATAOBSMGRCLIENT = 15500019Failed to obtain the data change subscription service.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-distributedKVStore-sys

openharmony 鸿蒙 capi-oh-preferences-h

openharmony 鸿蒙 capi-udmf-oh-udshyperlink

openharmony 鸿蒙 js-apis-data-dataSharePredicates

openharmony 鸿蒙 capi-udmf-oh-udsappitem

openharmony 鸿蒙 capi-rdb-oh-data-vbuckets

openharmony 鸿蒙 capi-rdb-oh-predicates

openharmony 鸿蒙 capi-rdb-oh-data-value

openharmony 鸿蒙 capi-preferences-oh-preferencespair

openharmony 鸿蒙 errorcode-datashare

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/uTnLbQE1