mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
Description: 新增applicationContext错误码ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST
IssueNo: #IAPOX6 Sig: SIG_ApplicationFramework Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: yangzk <yangzhongkai@huawei.com> Change-Id: I25509e923f6ebaeffaec07ee0bdc852b60762ee5
This commit is contained in:
parent
0a952cd273
commit
f189500575
@ -51,6 +51,8 @@ typedef enum {
|
|||||||
ABILITY_RUNTIME_ERROR_CODE_NO_ERROR = 0,
|
ABILITY_RUNTIME_ERROR_CODE_NO_ERROR = 0,
|
||||||
/** @error Invalid parameters. */
|
/** @error Invalid parameters. */
|
||||||
ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID = 401,
|
ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID = 401,
|
||||||
|
/** @error The context does not exist. */
|
||||||
|
ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST = 16000011,
|
||||||
} AbilityRuntime_ErrorCode;
|
} AbilityRuntime_ErrorCode;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -58,4 +60,4 @@ typedef enum {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif //ABILITY_RUNTIME_COMMON_H
|
#endif // ABILITY_RUNTIME_COMMON_H
|
||||||
|
@ -57,6 +57,7 @@ extern "C" {
|
|||||||
* {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
|
* {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
|
||||||
* {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the buffer or writeLength is null,
|
* {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the buffer or writeLength is null,
|
||||||
* or the buffer size is less than the minimum buffer size.
|
* or the buffer size is less than the minimum buffer size.
|
||||||
|
* {@link ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST} if the application context does not exist.
|
||||||
* @since 13
|
* @since 13
|
||||||
*/
|
*/
|
||||||
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetCacheDir(
|
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetCacheDir(
|
||||||
@ -69,6 +70,7 @@ AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetCacheDir(
|
|||||||
* @return The error code.
|
* @return The error code.
|
||||||
* {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
|
* {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
|
||||||
* {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the areaMode is null.
|
* {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the areaMode is null.
|
||||||
|
* {@link ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST} if the application context does not exist.
|
||||||
* @since 13
|
* @since 13
|
||||||
*/
|
*/
|
||||||
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetAreaMode(AbilityRuntime_AreaMode* areaMode);
|
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetAreaMode(AbilityRuntime_AreaMode* areaMode);
|
||||||
@ -84,6 +86,7 @@ AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetAreaMode(Ability
|
|||||||
* {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
|
* {@link ABILITY_RUNTIME_ERROR_CODE_NO_ERROR} if the operation is successful.
|
||||||
* {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the buffer or writeLength is null,
|
* {@link ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID} if the buffer or writeLength is null,
|
||||||
* or the buffer size is less than the minimum buffer size.
|
* or the buffer size is less than the minimum buffer size.
|
||||||
|
* {@link ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST} if the application context does not exist.
|
||||||
* @since 13
|
* @since 13
|
||||||
*/
|
*/
|
||||||
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetBundleName(
|
AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetBundleName(
|
||||||
|
Loading…
Reference in New Issue
Block a user