harmony 鸿蒙@ohos.ability.errorCode (ErrorCode)

2022-08-09 浏览 (817)

@ohos.ability.errorCode (ErrorCode)

ErrorCode定义启动Ability时返回的错误码,包括无效的参数、权限拒绝等。

说明:

本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

导入模块

import errorCode from '@ohos.ability.errorCode';

ErrorCode

定义启动Ability时返回的错误码。

系统能力:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core

名称说明
NO_ERROR0没有异常。
INVALID_PARAMETER-1无效的参数。
ABILITY_NOT_FOUND-2找不到ABILITY。
PERMISSION_DENY-3权限拒绝。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙接口

harmony 鸿蒙系统公共事件定义(待停用)

harmony 鸿蒙系统公共事件定义

harmony 鸿蒙开发说明

harmony 鸿蒙企业设备管理概述(仅对系统应用开放)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager模块)

harmony 鸿蒙@ohos.distributedBundle (分布式包管理)

harmony 鸿蒙@ohos.bundle (Bundle模块)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (企业设备管理扩展能力)

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/a5b897c1889b405d82f665a86e272ba1