interface_sdk-js/api/@ohos.ability.errorCode.d.ts
xinking129 0c2b749cad JSDoc change
Signed-off-by: xinking129 <xinxin13@huawei.com>
2023-05-06 14:59:50 +08:00

56 lines
1.3 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.
*/
/**
* 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
}