提交 f59f83a6 编写于 作者: B bailu1992

马达添加错误码信息

Signed-off-by: Nbailu1992 <bailu27@huawei.com>
上级 4e1e4d86
......@@ -31,6 +31,14 @@ startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: Asy
| attribute | [VibrateAttribute](#vibrateattribute9) | 是 | 马达振动属性。 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调函数。当马达振动成功,err为undefined,否则为错误对象。 |
**错误码**
以下错误码的详细介绍请参见 [ohos.vibrator错误码](../errorcodes/errorcode-vibrator.md)
| 错误码ID | 错误信息 |
| -------- | ------------------------- |
| 14600101 | Device operation failed。 |
示例:
```js
......@@ -76,6 +84,14 @@ startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise&lt;v
| ------------------- | -------------------------------------- |
| Promise&lt;void&gt; | Promise对象。无返回结果的Promise对象。 |
**错误码**
以下错误码的详细介绍请参见 [ohos.vibrator错误码](../errorcodes/errorcode-vibrator.md)
| 错误码ID | 错误信息 |
| -------- | ------------------------- |
| 14600101 | Device operation failed。 |
**示例:**
```js
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册