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

2026-08-25 浏览 (1)

graphic_error_code.h

Overview

Defines error codes.

File to include: <native_window/graphic_error_code.h>

Library: libnative_window.so

System capability: SystemCapability.Graphic.Graphic2D.NativeWindow

Since: 12

Related module: NativeWindow

Summary

Enumerated value

Nametypedef KeywordDescription
OHNativeErrorCodeOHNativeErrorCodeDefines an enum for the error codes.

Enum Description

OHNativeErrorCode

enum OHNativeErrorCode

Description

Defines an enum for the error codes.

Since: 12

ValueDescription
NATIVE_ERROR_OK = 0Operation successful.
NATIVE_ERROR_MEM_OPERATION_ERROR = 30001000An error occurs during memory manipulation.
Since: 15
NATIVE_ERROR_INVALID_ARGUMENTS = 40001000An input parameter is invalid.
NATIVE_ERROR_NO_PERMISSION = 40301000You do not have the permission to perform the operation.
NATIVE_ERROR_NO_BUFFER = 40601000No buffer is available.
NATIVE_ERROR_NO_CONSUMER = 41202000The consumer does not exist.
NATIVE_ERROR_NOT_INIT = 41203000Not initialized.
NATIVE_ERROR_CONSUMER_CONNECTED = 41206000The consumer is connected.
NATIVE_ERROR_BUFFER_STATE_INVALID = 41207000The buffer status does not meet the expectation.
NATIVE_ERROR_BUFFER_IN_CACHE = 41208000The buffer is already in the buffer queue.
NATIVE_ERROR_BUFFER_QUEUE_FULL = 41209000The queue is full.
NATIVE_ERROR_BUFFER_NOT_IN_CACHE = 41210000The buffer is not in the buffer queue.
NATIVE_ERROR_CONSUMER_DISCONNECTED = 41211000The consumer is disconnected.
NATIVE_ERROR_CONSUMER_NO_LISTENER_REGISTERED = 41212000No listener is registered on the consumer side.
NATIVE_ERROR_UNSUPPORTED = 50102000The device or platform does not support the operation.
NATIVE_ERROR_UNKNOWN = 50002000Unknown error. Check the log.
NATIVE_ERROR_HDI_ERROR = 50007000Failed to call the HDI.
NATIVE_ERROR_BINDER_ERROR = 50401000Cross-process communication failed.
NATIVE_ERROR_EGL_STATE_UNKNOWN = 60001000The EGL environment is abnormal.
NATIVE_ERROR_EGL_API_FAILED = 60002000Failed to call the EGL APIs.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-drawing-gpu-context-h

openharmony 鸿蒙 capi-drawing-nativepixelmap-

openharmony 鸿蒙 capi-nativevsync-oh-nativevsync-expectedraterange

openharmony 鸿蒙 capi-drawing-oh-drawing-brush

openharmony 鸿蒙 capi-drawing-oh-drawing-image-info

openharmony 鸿蒙 capi-drawing-text-linetypography-h

openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage

openharmony 鸿蒙 capi-drawing-typeface-h

openharmony 鸿蒙 capi-drawing-brush-h

openharmony 鸿蒙 capi-nativewindow

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