提交 21be5ced 编写于 作者: D duanweiling

增加首选项错误码文档

Signed-off-by: Nduanweiling <duanweiling@huawei.com>
上级 93041aad
...@@ -53,8 +53,8 @@ let context = featureAbility.getContext(); ...@@ -53,8 +53,8 @@ let context = featureAbility.getContext();
let preferences = null; let preferences = null;
try { try {
data_preferences.getPreferences(context, 'mystore', function (err, val) { data_preferences.getPreferences(context, 'mystore', function (err, val) {
if (err) { if (err) {
console.info("Failed to get preferences. code =" + err.code + ", message =" + err.message); console.info("Failed to get preferences. code =" + err.code + ", message =" + err.message);
return; return;
} }
......
# 首选项错误码 # 首选项错误码
## 15500010 删除首选项失败 ## 15500010 删除首选项失败
**错误信息**<br> **错误信息**
Failed to delete preferences. Failed to delete preferences.
**错误描述**<br> **错误描述**
删除首选项失败。 删除首选项失败。
**可能原因**<br> **可能原因**
系统错误导致文件删除失败,可能原因如下: 系统错误导致文件删除失败,可能原因如下:
1. 要删除的文件不存在。 1. 文件名称不正确。
2. 没有操作权限。 2. 文件路径不正确。
**处理步骤**
**处理步骤**<br> 1. 检查文件名称是否正确。
重启设备后再次尝试。 2. 检查文件路径是否正确。
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册