46 Star 173 Fork 4.7K

OpenHarmony/interface_sdk-js

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
@ohos.ability.errorCode.d.ts 1.38 KB
Copy Edit Raw Blame History
dy authored 2 years ago . Updata atomicservice tag.
/*
* 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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

Search