openharmony 鸿蒙 capi-ability-runtime-common-h

2026-08-25 浏览 (1)

ability_runtime_common.h

Overview

The file declares the error codes of the AbilityRuntime module.

File to include: <AbilityKit/ability_runtime/ability_runtime_common.h>

Library: libability_runtime.so

System capability: SystemCapability.Ability.AbilityRuntime.Core

Since: 13

Related module: AbilityRuntime

Summary

Enums

Nametypedef KeywordDescription
AbilityRuntime_ErrorCodeAbilityRuntime_ErrorCodeEnumerates the error codes of the AbilityRuntime module.

Enum Description

AbilityRuntime_ErrorCode

enum AbilityRuntime_ErrorCode

Description

Enumerates the error codes of the AbilityRuntime module.

Since: 13

ValueDescription
ABILITY_RUNTIME_ERROR_CODE_NO_ERROR = 0Operation successful.
ABILITY_RUNTIME_ERROR_CODE_PERMISSION_DENIED = 201Permission verification fails.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID = 401Invalid parameter.
ABILITY_RUNTIME_ERROR_CODE_NOT_SUPPORTED = 801The device type is not supported.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_NO_SUCH_ABILITY = 16000001The specified ability name does not exist.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_INCORRECT_ABILITY_TYPE = 16000002The ability type is incorrect.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_CROWDTEST_EXPIRED = 16000008The crowdtesting application expires.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_WUKONG_MODE = 16000009An ability cannot be started or stopped in Wukong mode.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST = 16000011The context does not exist.
ABILITY_RUNTIME_ERROR_CODE_CONTROLLED = 16000012The application is under control.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_EDM_CONTROLLED = 16000013The application is under control by EDM.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_CROSS_APP = 16000018Redirection to third-party applications is not allowed in API versions later than 11.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_INTERNAL = 16000050Internal server error.
Since: 15
ABILITY_RUNTIME_ERROR_CODE_NOT_TOP_ABILITY = 16000053The application is not on top.
Since: 15
ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED = 16000067Setting the window visibility during startup is not allowed.
Since: 17
ABILITY_RUNTIME_ERROR_CODE_MULTI_APP_NOT_SUPPORTED = 16000072The application does not support clone or multi-instance mode.
Since: 17
ABILITY_RUNTIME_ERROR_CODE_INVALID_APP_INSTANCE_KEY = 16000076The multi-instance key is invalid.
Since: 17
ABILITY_RUNTIME_ERROR_CODE_UPPER_LIMIT_REACHED = 16000077The number of instances has reached the upper limit.
Since: 17
ABILITY_RUNTIME_ERROR_MULTI_INSTANCE_NOT_SUPPORTED = 16000078The application does not support multi-instance mode.
Since: 17
ABILITY_RUNTIME_ERROR_CODE_APP_INSTANCE_KEY_NOT_SUPPORTED = 16000079Setting APP_INSTANCE_KEY is not supported.
Since: 17
ABILITY_RUNTIME_ERROR_CODE_GET_APPLICATION_INFO_FAILED = 16000081Failed to obtain the application information.
Since: 21
ABILITY_RUNTIME_ERROR_CODE_START_TIMEOUT = 16000133Starting the UIAbility times out.
Since: 21
ABILITY_RUNTIME_ERROR_CODE_MAIN_THREAD_NOT_SUPPORTED = 16000134The function cannot be called on the main thread of the application.
Since: 21

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-app-ability-appServiceExtensionAbility

openharmony 鸿蒙 js-apis-inner-wantAgent-triggerInfo-sys

openharmony 鸿蒙 js-apis-inner-wantAgent-wantAgentInfo-sys

openharmony 鸿蒙 js-apis-appControl-sys

openharmony 鸿蒙 js-apis-app-ability-environmentCallback

openharmony 鸿蒙 js-apis-inner-application-missionInfo-sys

openharmony 鸿蒙 js-apis-bundleManager-sharedBundleInfo-sys

openharmony 鸿蒙 js-apis-inner-application-continueMissionInfo-sys

openharmony 鸿蒙 js-apis-inner-application-appServiceExtensionContext

openharmony 鸿蒙 js-apis-bundleManager-businessAbilityInfo-sys

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