harmony 鸿蒙oh_preferences_err_code.h

  • 2025-06-12
  • 浏览 (8)

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

Types

Name Description
typedef enum OH_Preferences_ErrCode OH_Preferences_ErrCode Defines an enum for error codes.

Enums

Name Description
OH_Preferences_ErrCode {
PREFERENCES_OK = 0, PREFERENCES_ERROR_INVALID_PARAM = 401, PREFERENCES_ERROR_NOT_SUPPORTED = 801, PREFERENCES_ERROR_BASE = 15500000,
PREFERENCES_ERROR_DELETE_FILE = 15500010, PREFERENCES_ERROR_STORAGE = 15500011, PREFERENCES_ERROR_MALLOC = 15500012, PREFERENCES_ERROR_KEY_NOT_FOUND= 15500013,
PREFERENCES_ERROR_GET_DATAOBSMGRCLIENT = 15500019
}
Enumerates the error codes used in the Preferences module.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkData (ArkData Management)

harmony 鸿蒙Data

harmony 鸿蒙OH_Cursor

harmony 鸿蒙OH_Predicates

harmony 鸿蒙OH_Rdb_Config

harmony 鸿蒙OH_Rdb_Store

harmony 鸿蒙OH_VBucket

harmony 鸿蒙OH_VObject

harmony 鸿蒙Preferences

harmony 鸿蒙_r_d_b

0  赞