mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
60626675d6
Signed-off-by: dy_study <dingyao5@huawei.com> Change-Id: I5b6de1ac9e7ceab77e328c4201b10459cbfc1f3e
61 lines
1.4 KiB
TypeScript
61 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @kit AbilityKit
|
|
*/
|
|
|
|
/**
|
|
* Defines error codes used when starting an ability, for example, featureAbility.ErrorCode.NO_ERROR.
|
|
*
|
|
* @enum { number }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 6
|
|
*/
|
|
export enum ErrorCode {
|
|
/**
|
|
* Permission denied.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 6
|
|
*/
|
|
PERMISSION_DENY = -3,
|
|
|
|
/**
|
|
* Ability not found.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 6
|
|
*/
|
|
ABILITY_NOT_FOUND = -2,
|
|
|
|
/**
|
|
* Invalid parameter.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 6
|
|
*/
|
|
INVALID_PARAMETER = -1,
|
|
|
|
/**
|
|
* No error.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 6
|
|
*/
|
|
NO_ERROR = 0
|
|
}
|