harmony 鸿蒙OH_IPC_ErrorCode

2025-06-12 浏览 (1)

OH_IPC_ErrorCode

Overview

Defines the IPC result codes.

System capability: SystemCapability.Communication.IPC.Core

Since: 12

Summary

Files

NameDescription
ipc_error_code.hDefines the IPC result codes.

Enums

NameDescription
OH_IPC_ErrorCode {
OH_IPC_SUCCESS = 0,
OH_IPC_ERROR_CODE_BASE = 1901000,
OH_IPC_CHECK_PARAM_ERROR = OH_IPC_ERROR_CODE_BASE,
OH_IPC_PARCEL_WRITE_ERROR = OH_IPC_ERROR_CODE_BASE + 1,
OH_IPC_PARCEL_READ_ERROR = OH_IPC_ERROR_CODE_BASE + 2,
OH_IPC_MEM_ALLOCATOR_ERROR = OH_IPC_ERROR_CODE_BASE + 3,
OH_IPC_CODE_OUT_OF_RANGE = OH_IPC_ERROR_CODE_BASE + 4,
OH_IPC_DEAD_REMOTE_OBJECT = OH_IPC_ERROR_CODE_BASE + 5,
OH_IPC_INVALID_USER_ERROR_CODE = OH_IPC_ERROR_CODE_BASE + 6,
OH_IPC_INNER_ERROR = OH_IPC_ERROR_CODE_BASE + 7,
OH_IPC_ERROR_CODE_MAX = OH_IPC_ERROR_CODE_BASE + 1000,
OH_IPC_USER_ERROR_CODE_MIN = 1909000,
OH_IPC_USER_ERROR_CODE_MAX = 1909999
}
Enumerates the IPC result codes.

Enum Description

OH_IPC_ErrorCode

enum OH_IPC_ErrorCode

Description

Enumerates the IPC result codes.

Since: 12

ValueDescription
OH_IPC_SUCCESSExecution success.
OH_IPC_ERROR_CODE_BASEStart error code.
OH_IPC_CHECK_PARAM_ERRORParameter error.
OH_IPC_PARCEL_WRITE_ERRORFailed to write data to the serialized object.
OH_IPC_PARCEL_READ_ERRORFailed to read data from the serialized object.
OH_IPC_MEM_ALLOCATOR_ERRORFailed to allocate memory.
OH_IPC_CODE_OUT_OF_RANGEThe command word is out of the value range [0x01,0x00ffffff].
OH_IPC_DEAD_REMOTE_OBJECTThe remote object is dead.
OH_IPC_INVALID_USER_ERROR_CODEThe custom error code is out of the range [1900001, 1999999].
OH_IPC_INNER_ERRORIPC internal error.
OH_IPC_ERROR_CODE_MAXMaximum error code.
OH_IPC_USER_ERROR_CODE_MINMinimum value for a custom error code.
OH_IPC_USER_ERROR_CODE_MAXMaximum value for a custom error code.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙IPC Kit

harmony 鸿蒙IPC Kit

harmony 鸿蒙OH_IPC_MessageOption

harmony 鸿蒙OHIPCParcel

harmony 鸿蒙OHIPCRemoteObject

harmony 鸿蒙OHIPCSkeleton

harmony 鸿蒙RPC Error Codes

harmony 鸿蒙ipc_cparcel.h

harmony 鸿蒙ipc_cremote_object.h

harmony 鸿蒙ipc_cskeleton.h

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