Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
a6a13004
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a6a13004
编写于
3月 13, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 13, 2023
浏览文件
操作
浏览文件
下载
差异文件
!15735 更新事件通知错误码描述合入monthly_0221018
Merge pull request !15735 from yangliang36/yl0309_m
上级
a5649152
a0f94d7b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
18 deletion
+18
-18
zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md
...erence/apis/js-apis-inner-application-abilityDelegator.md
+8
-8
zh-cn/application-dev/reference/errorcodes/errorcode-CommonEventService.md
...-dev/reference/errorcodes/errorcode-CommonEventService.md
+10
-10
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md
浏览文件 @
a6a13004
...
...
@@ -502,8 +502,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator
.
getCurrentTopAbility
((
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
'
getCurrentTopAbility callback
'
);
ability
=
data
;
abilityDelegator
.
doAbilityForeground
(
ability
,
(
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
'
doAbilityForeground callback
'
);
abilityDelegator
.
doAbilityForeground
(
ability
,
(
err
:
any
)
=>
{
console
.
info
(
"
doAbilityForeground callback
"
);
});
});
```
...
...
@@ -540,8 +540,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator
.
getCurrentTopAbility
((
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
'
getCurrentTopAbility callback
'
);
ability
=
data
;
abilityDelegator
.
doAbilityForeground
(
ability
).
then
((
data
:
any
)
=>
{
console
.
info
(
'
doAbilityForeground promise
'
);
abilityDelegator
.
doAbilityForeground
(
ability
).
then
(()
=>
{
console
.
info
(
"
doAbilityForeground promise
"
);
});
});
```
...
...
@@ -573,8 +573,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator
.
getCurrentTopAbility
((
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
'
getCurrentTopAbility callback
'
);
ability
=
data
;
abilityDelegator
.
doAbilityBackground
(
ability
,
(
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
'
doAbilityBackground callback
'
);
abilityDelegator
.
doAbilityBackground
(
ability
,
(
err
:
any
)
=>
{
console
.
info
(
"
doAbilityBackground callback
"
);
});
});
```
...
...
@@ -611,8 +611,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator
.
getCurrentTopAbility
((
err
:
any
,
data
:
any
)
=>
{
console
.
info
(
'
getCurrentTopAbility callback
'
);
ability
=
data
;
abilityDelegator
.
doAbilityBackground
(
ability
).
then
((
data
:
any
)
=>
{
console
.
info
(
'
doAbilityBackground promise
'
);
abilityDelegator
.
doAbilityBackground
(
ability
).
then
(()
=>
{
console
.
info
(
"
doAbilityBackground promise
"
);
});
});
```
...
...
zh-cn/application-dev/reference/errorcodes/errorcode-CommonEventService.md
浏览文件 @
a6a13004
...
...
@@ -3,7 +3,7 @@
## 1500001 want中Action为空
**错误信息**
Want action is null
> The action field in the want parameter is null.
**错误描述**
发送事件的want中的Action属性为空时系统会产生此错误码。
...
...
@@ -17,7 +17,7 @@ Want action is null
## 1500002 沙箱引用无法发送公共事件
**错误信息**
sandbox application can not send common event
> A sandbox application cannot send common events.
**错误描述**
沙箱引用无法发送公共事件。
...
...
@@ -31,7 +31,7 @@ sandbox application can not send common event
## 1500003 事件发送频率过高
**错误信息**
common event send frequency too high
> Too many common events are send in a short period of time.
**错误描述**
应用发送事件过于频繁。
...
...
@@ -45,7 +45,7 @@ common event send frequency too high
## 1500004 无法发送系统公共事件
**错误信息**
not System services or System app
> A third-party application cannot send system common events.
**错误描述**
当前应用无法发送系统公共事件。
...
...
@@ -59,7 +59,7 @@ not System services or System app
## 1500005 未找到订阅者
**错误信息**
subscriber can not found
> The subscriber is not found.
**错误描述**
找不到订阅者。
...
...
@@ -73,7 +73,7 @@ subscriber can not found
## 1500006 无效userId
**错误信息**
usreId is invalid
> Invalid userId.
**错误描述**
无效的userId。
...
...
@@ -87,7 +87,7 @@ usreId is invalid
## 1500007 IPC请求发送失败
**错误信息**
message send error
> Failed to send the message.
**错误描述**
IPC发送请求失败。
...
...
@@ -101,7 +101,7 @@ IPC发送请求失败。
## 1500008 读取数据失败
**错误信息**
CEMS error
> Failed to read the data.
**错误描述**
服务端发生错误。
...
...
@@ -112,10 +112,10 @@ CEMS error
**处理步骤**
稍后重新尝试。
## 1500009
system error
## 1500009
系统错误
**错误信息**
system error
> System error.
**错误描述**
处理业务时系统发生异常,如获取系统当前时间失败。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录