提交 f20d365f 编写于 作者: L LiRui

modify error code description

Signed-off-by: NLiRui <lirui.WX1229126@huawei.com>
上级 3353dda3
...@@ -65,7 +65,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback&lt; ...@@ -65,7 +65,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback&lt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | ---------------------------------------------------- | | -------- | ---------------------------------------------------- |
| 15700010 | The dataShareHelper is not initialized successfully. | | 15700010 | The DataShareHelper is not initialized successfully. |
**示例:** **示例:**
...@@ -120,7 +120,7 @@ createDataShareHelper(context: Context, uri: string): Promise&lt;DataShareHelper ...@@ -120,7 +120,7 @@ createDataShareHelper(context: Context, uri: string): Promise&lt;DataShareHelper
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | ---------------------------------------------------- | | -------- | ---------------------------------------------------- |
| 15700010 | The dataShareHelper is not initialized successfully. | | 15700010 | The DataShareHelper is not initialized successfully. |
**示例:** **示例:**
......
...@@ -185,7 +185,7 @@ deletePreferences(context: Context, name: string, callback: AsyncCallback&lt;voi ...@@ -185,7 +185,7 @@ deletePreferences(context: Context, name: string, callback: AsyncCallback&lt;voi
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | ------------------------------| | -------- | ------------------------------|
| 15500010 | Failed to delete preferences. | | 15500010 | Failed to delete preferences file. |
**示例:** **示例:**
...@@ -262,7 +262,7 @@ deletePreferences(context: Context, name: string): Promise&lt;void&gt; ...@@ -262,7 +262,7 @@ deletePreferences(context: Context, name: string): Promise&lt;void&gt;
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | ------------------------------| | -------- | ------------------------------|
| 15500010 | Failed to delete preferences. | | 15500010 | Failed to delete preferences file. |
**示例:** **示例:**
......
...@@ -4,29 +4,47 @@ ...@@ -4,29 +4,47 @@
> >
> 以下仅介绍本模块特有错误码,通用错误码请参考[通用错误码说明文档](errorcode-universal.md)。 > 以下仅介绍本模块特有错误码,通用错误码请参考[通用错误码说明文档](errorcode-universal.md)。
## 14800000 内部错误
**错误信息**
Inner error.
**错误描述**
数据库底层发生错误。
**可能原因**
传入SQL语句非法等。
**处理步骤**
需通过日志信息确认错误发生原因。
## 14800010 数据库名称不合法 ## 14800010 数据库名称不合法
**错误信息** **错误信息**
Invalid database name. Failed to open or delete database by invalid database path.
**错误描述** **错误描述**
数据库名称不合法。 数据库路径不合法。
**可能原因** **可能原因**
无效的数据库名称,数据库名称为空或包含的字符超出1024字节 无效的数据库路径
**处理步骤** **处理步骤**
检查传入数据库名称,检查数据库名称是否为空或包含的字符超出1024字节 检查传入数据库路径
## 14800011 数据库文件损坏 ## 14800011 数据库文件损坏
**错误信息** **错误信息**
Database corrupted. Failed to open database by database corrupted.
**错误描述** **错误描述**
...@@ -45,7 +63,7 @@ Database corrupted. ...@@ -45,7 +63,7 @@ Database corrupted.
**错误信息** **错误信息**
The result set is empty or the specified location is invalid. The result set is empty or the specified location is invalid.
**错误描述** **错误描述**
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
**错误信息** **错误信息**
The dataShareHelper is not initialized successfully. The DataShareHelper is not initialized successfully.
**错误描述** **错误描述**
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
## 15500010 删除用户首选项持久化文件失败 ## 15500010 删除用户首选项持久化文件失败
**错误信息** **错误信息**
Failed to delete preferences. Failed to delete preferences file.
**错误描述** **错误描述**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册