## 概述

PhonePC/2in1TabletTVWearable

声明AbilityBase定义的相关错误码。

**引用文件**：<AbilityKit/ability\_base/ability\_base\_common.h>

**库：** libability\_base\_want.so

**系统能力：** SystemCapability.Ability.AbilityBase

**起始版本：** 15

**相关模块：** [AbilityBase](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-abilitybase)

## 汇总

PhonePC/2in1TabletTVWearable

### 枚举

PhonePC/2in1TabletTVWearable

展开

| 名称 | typedef关键字 | 描述 |
| --- | --- | --- |
| [AbilityBase\_ErrorCode](/consumer/cn/doc/harmonyos-references/capi-ability-base-common-h#abilitybase_errorcode) | AbilityBase\_ErrorCode | AbilityBase相关错误码枚举。 |

## 枚举类型说明

PhonePC/2in1TabletTVWearable

### AbilityBase\_ErrorCode

PhonePC/2in1TabletTVWearable



```
1. enum AbilityBase_ErrorCode
```

**描述**

AbilityBase相关错误码枚举。

**起始版本：** 15

展开

| 枚举项 | 描述 |
| --- | --- |
| ABILITY\_BASE\_ERROR\_CODE\_NO\_ERROR = 0 | 操作成功。 |
| ABILITY\_BASE\_ERROR\_CODE\_PARAM\_INVALID = 401 | 非法入参。 |