openharmony 鸿蒙 capi-ipc-error-code-h

2026-08-25 浏览 (1)

ipc_error_code.h

Overview

Defines the IPC error codes.

File to include: <IPCKit/ipc_error_code.h>

Library: libipc_capi.so

System capability: SystemCapability.Communication.IPC.Core

Since: 12

Related module: OHIPCErrorCode

Summary

Enums

Nametypedef KeywordDescription
OH_IPC_ErrorCodeOH_IPC_ErrorCodeEnumerates IPC error messages.

Enum Description

OH_IPC_ErrorCode

enum OH_IPC_ErrorCode

Description

Enumerates the IPC error codes.

Since: 12

ValueDescription
OH_IPC_SUCCESS = 0Execution successful.
OH_IPC_ERROR_CODE_BASE = 1901000Start error code.
OH_IPC_CHECK_PARAM_ERROR = OH_IPC_ERROR_CODE_BASEInvalid parameter.
OH_IPC_PARCEL_WRITE_ERROR = OH_IPC_ERROR_CODE_BASE + 1Failed to write data to the serialized object.
OH_IPC_PARCEL_READ_ERROR = OH_IPC_ERROR_CODE_BASE + 2Failed to read data from the serialized object.
OH_IPC_MEM_ALLOCATOR_ERROR = OH_IPC_ERROR_CODE_BASE + 3Failed to allocate memory.
OH_IPC_CODE_OUT_OF_RANGE = OH_IPC_ERROR_CODE_BASE + 4The command word is out of the value range [0x01, 0x00ffffff].
OH_IPC_DEAD_REMOTE_OBJECT = OH_IPC_ERROR_CODE_BASE + 5The remote object is dead.
OH_IPC_INVALID_USER_ERROR_CODE = OH_IPC_ERROR_CODE_BASE + 6The custom error code is out of the range [1900001, 1999999].
OH_IPC_INNER_ERROR = OH_IPC_ERROR_CODE_BASE + 7IPC internal error.
OH_IPC_ERROR_CODE_MAX = OH_IPC_ERROR_CODE_BASE + 1000Maximum error code.
OH_IPC_USER_ERROR_CODE_MIN = 1909000Minimum value for a custom error code.
OH_IPC_USER_ERROR_CODE_MAX = 1909999Maximum value for a custom error code.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-ohipcremoteobject-oh-ipc-messageoption

openharmony 鸿蒙 capi-ohipcremoteobject-ohipcdeathrecipient

openharmony 鸿蒙 capi-ohipcparcel

openharmony 鸿蒙 errorcode-rpc

openharmony 鸿蒙 capi-ohipcremoteobject

openharmony 鸿蒙 capi-ipc-cskeleton-h

openharmony 鸿蒙 capi-ohipcskeleton

openharmony 鸿蒙 capi-ohipcparcel-ohipcremotestub

openharmony 鸿蒙 capi-ohipcparcel-ohipcremoteproxy

openharmony 鸿蒙 capi-ohipcerrorcode

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