• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ability_runtime_common.h
2
3## Overview
4
5The file declares the error codes of the AbilityRuntime module.
6
7**File to include**: <AbilityKit/ability_runtime/ability_runtime_common.h>
8
9**Library**: libability_runtime.so
10
11**System capability**: SystemCapability.Ability.AbilityRuntime.Core
12
13**Since**: 13
14
15**Related module**: [AbilityRuntime](capi-abilityruntime.md)
16
17## Summary
18
19### Enums
20
21| Name| typedef Keyword| Description|
22| -- | -- | -- |
23| [AbilityRuntime_ErrorCode](#abilityruntime_errorcode) | AbilityRuntime_ErrorCode | Enumerates the error codes of the AbilityRuntime module.|
24
25## Enum Description
26
27### AbilityRuntime_ErrorCode
28
29```
30enum AbilityRuntime_ErrorCode
31```
32
33**Description**
34
35Enumerates the error codes of the AbilityRuntime module.
36
37**Since**: 13
38
39| Value| Description|
40| -- | -- |
41| ABILITY_RUNTIME_ERROR_CODE_NO_ERROR = 0 | Operation successful.|
42| ABILITY_RUNTIME_ERROR_CODE_PERMISSION_DENIED = 201 |  Permission verification fails.<br>**Since**: 15|
43| ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID = 401 | Invalid parameter.|
44| ABILITY_RUNTIME_ERROR_CODE_NOT_SUPPORTED = 801 |  The device type is not supported.<br>**Since**: 15|
45| ABILITY_RUNTIME_ERROR_CODE_NO_SUCH_ABILITY = 16000001 |  The specified ability name does not exist.<br>**Since**: 15|
46| ABILITY_RUNTIME_ERROR_CODE_INCORRECT_ABILITY_TYPE = 16000002 |  The ability type is incorrect.<br>**Since**: 15|
47| ABILITY_RUNTIME_ERROR_CODE_CROWDTEST_EXPIRED = 16000008 |  The crowdtesting application expires.<br>**Since**: 15|
48| ABILITY_RUNTIME_ERROR_CODE_WUKONG_MODE = 16000009 |  An ability cannot be started or stopped in Wukong mode.<br>**Since**: 15|
49| ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST = 16000011 | The context does not exist.|
50| ABILITY_RUNTIME_ERROR_CODE_CONTROLLED = 16000012 |  The application is under control.<br>**Since**: 15|
51| ABILITY_RUNTIME_ERROR_CODE_EDM_CONTROLLED = 16000013 |  The application is under control by EDM.<br>**Since**: 15|
52| ABILITY_RUNTIME_ERROR_CODE_CROSS_APP = 16000018 |  Redirection to third-party applications is not allowed in API versions later than 11.<br>**Since**: 15|
53| ABILITY_RUNTIME_ERROR_CODE_INTERNAL = 16000050 |  Internal server error.<br>**Since**: 15|
54| ABILITY_RUNTIME_ERROR_CODE_NOT_TOP_ABILITY = 16000053 |  The application is not on top.<br>**Since**: 15|
55| ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED = 16000067 |  Setting the window visibility during startup is not allowed.<br>**Since**: 17|
56| ABILITY_RUNTIME_ERROR_CODE_MULTI_APP_NOT_SUPPORTED = 16000072 |  The application does not support clone or multi-instance mode.<br>**Since**: 17|
57| ABILITY_RUNTIME_ERROR_CODE_INVALID_APP_INSTANCE_KEY = 16000076 |  The multi-instance key is invalid.<br>**Since**: 17|
58| ABILITY_RUNTIME_ERROR_CODE_UPPER_LIMIT_REACHED = 16000077 |  The number of instances has reached the upper limit.<br>**Since**: 17|
59| ABILITY_RUNTIME_ERROR_MULTI_INSTANCE_NOT_SUPPORTED = 16000078 |  The application does not support multi-instance mode.<br>**Since**: 17|
60| ABILITY_RUNTIME_ERROR_CODE_APP_INSTANCE_KEY_NOT_SUPPORTED = 16000079 |  Setting **APP_INSTANCE_KEY** is not supported.<br>**Since**: 17|
61