未验证 提交 8ce8cd1b 编写于 作者: O openharmony_ci 提交者: Gitee

!18449 modify error code description

Merge pull request !18449 from 李芮/dts_doc_same
...@@ -65,7 +65,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback< ...@@ -65,7 +65,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback<
| 错误码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<DataShareHelper ...@@ -120,7 +120,7 @@ createDataShareHelper(context: Context, uri: string): Promise<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<voi ...@@ -185,7 +185,7 @@ deletePreferences(context: Context, name: string, callback: AsyncCallback<voi
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | ------------------------------| | -------- | ------------------------------|
| 15500010 | Failed to delete preferences. | | 15500010 | Failed to delete preferences file. |
**示例:** **示例:**
...@@ -262,7 +262,7 @@ deletePreferences(context: Context, name: string): Promise<void> ...@@ -262,7 +262,7 @@ deletePreferences(context: Context, name: string): Promise<void>
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | ------------------------------| | -------- | ------------------------------|
| 15500010 | Failed to delete preferences. | | 15500010 | Failed to delete preferences file. |
**示例:** **示例:**
......
...@@ -38,10 +38,11 @@ getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback<Rd ...@@ -38,10 +38,11 @@ getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback<Rd
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | ----------------------------------------------------------- |
| 14800010 | If failed delete database by invalid database name. | | 14800010 | Failed to open or delete database by invalid database path. |
| 14800011 | If failed open database by database corrupted. | | 14800011 | Failed to open database by database corrupted. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -121,10 +122,11 @@ getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore> ...@@ -121,10 +122,11 @@ getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore>
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | ----------------------------------------------------------- |
| 14800010 | If failed delete database by invalid database name. | | 14800010 | Failed to open or delete database by invalid database path. |
| 14800011 | If failed open database by database corrupted. | | 14800011 | Failed to open database by database corrupted. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -196,9 +198,10 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void&g ...@@ -196,9 +198,10 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void&g
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | ----------------------------------------------------------- |
| 14800010 | If failed delete database by invalid database name. | | 14800010 | Failed to open or delete database by invalid database path. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -262,9 +265,10 @@ deleteRdbStore(context: Context, name: string): Promise<void> ...@@ -262,9 +265,10 @@ deleteRdbStore(context: Context, name: string): Promise<void>
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | ----------------------------------------------------------- |
| 14800010 | If failed delete database by invalid database name. | | 14800010 | Failed to open or delete database by invalid database path. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1289,9 +1293,10 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number&gt ...@@ -1289,9 +1293,10 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number&gt
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1332,9 +1337,10 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb ...@@ -1332,9 +1337,10 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1379,9 +1385,10 @@ insert(table: string, values: ValuesBucket):Promise<number> ...@@ -1379,9 +1385,10 @@ insert(table: string, values: ValuesBucket):Promise<number>
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1426,9 +1433,10 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi ...@@ -1426,9 +1433,10 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1467,9 +1475,10 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal ...@@ -1467,9 +1475,10 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1528,9 +1537,10 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number& ...@@ -1528,9 +1537,10 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number&
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1583,9 +1593,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback& ...@@ -1583,9 +1593,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback&
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1628,9 +1639,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu ...@@ -1628,9 +1639,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1677,9 +1689,10 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number> ...@@ -1677,9 +1689,10 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number>
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1726,9 +1739,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu ...@@ -1726,9 +1739,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1774,9 +1788,10 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data ...@@ -1774,9 +1788,10 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1829,9 +1844,10 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data ...@@ -1829,9 +1844,10 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1872,9 +1888,10 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void ...@@ -1872,9 +1888,10 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1914,9 +1931,10 @@ delete(predicates: RdbPredicates):Promise<number> ...@@ -1914,9 +1931,10 @@ delete(predicates: RdbPredicates):Promise<number>
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -1955,9 +1973,10 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb ...@@ -1955,9 +1973,10 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -2003,9 +2022,10 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi ...@@ -2003,9 +2022,10 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -2037,6 +2057,14 @@ query(predicates: RdbPredicates, columns: Array<string>, callback: AsyncCa ...@@ -2037,6 +2057,14 @@ query(predicates: RdbPredicates, columns: Array<string>, callback: AsyncCa
| columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 |
| callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2067,6 +2095,14 @@ query(predicates: RdbPredicates, columns?: Array<string>):Promise<Resul ...@@ -2067,6 +2095,14 @@ query(predicates: RdbPredicates, columns?: Array<string>):Promise<Resul
| predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的查询条件。 | | predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的查询条件。 |
| columns | Array<string> | 否 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | columns | Array<string> | 否 | 表示要查询的列。如果值为空,则查询应用于所有列。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**返回值** **返回值**
| 类型 | 说明 | | 类型 | 说明 |
...@@ -2108,6 +2144,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column ...@@ -2108,6 +2144,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column
| columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 |
| callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2150,6 +2194,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column ...@@ -2150,6 +2194,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column
| ------------------------------------------------------- | -------------------------------------------------- | | ------------------------------------------------------- | -------------------------------------------------- |
| Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 | | Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2187,6 +2239,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A ...@@ -2187,6 +2239,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A
| columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 |
| callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2245,6 +2305,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A ...@@ -2245,6 +2305,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A
| ------------------------------------------------------------ | -------------------------------------------------- | | ------------------------------------------------------------ | -------------------------------------------------- |
| Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 | | Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2289,6 +2357,14 @@ querySql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback& ...@@ -2289,6 +2357,14 @@ querySql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback&
| bindArgs | Array<[ValueType](#valuetype)> | 是 | SQL语句中参数的值。该值与sql参数语句中的占位符相对应。当sql参数语句完整时,该参数需为空数组。 | | bindArgs | Array<[ValueType](#valuetype)> | 是 | SQL语句中参数的值。该值与sql参数语句中的占位符相对应。当sql参数语句完整时,该参数需为空数组。 |
| callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2323,6 +2399,14 @@ querySql(sql: string, bindArgs?: Array<ValueType>):Promise<ResultSet&gt ...@@ -2323,6 +2399,14 @@ querySql(sql: string, bindArgs?: Array<ValueType>):Promise<ResultSet&gt
| ------------------------------------------------------- | -------------------------------------------------- | | ------------------------------------------------------- | -------------------------------------------------- |
| Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 | | Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2355,9 +2439,10 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac ...@@ -2355,9 +2439,10 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -2397,9 +2482,10 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> ...@@ -2397,9 +2482,10 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void>
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -2425,9 +2511,10 @@ beginTransaction():void ...@@ -2425,9 +2511,10 @@ beginTransaction():void
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md) 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ----------------------- | | ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit.| | 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:** **示例:**
...@@ -2544,6 +2631,14 @@ backup(destName:string, callback: AsyncCallback<void>):void ...@@ -2544,6 +2631,14 @@ backup(destName:string, callback: AsyncCallback<void>):void
| destName | string | 是 | 指定数据库的备份文件名。 | | destName | string | 是 | 指定数据库的备份文件名。 |
| callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2576,6 +2671,14 @@ backup(destName:string): Promise<void> ...@@ -2576,6 +2671,14 @@ backup(destName:string): Promise<void>
| ------------------- | ------------------------- | | ------------------- | ------------------------- |
| Promise<void> | 无返回结果的Promise对象。 | | Promise<void> | 无返回结果的Promise对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2602,6 +2705,14 @@ restore(srcName:string, callback: AsyncCallback<void>):void ...@@ -2602,6 +2705,14 @@ restore(srcName:string, callback: AsyncCallback<void>):void
| srcName | string | 是 | 指定数据库的备份文件名。 | | srcName | string | 是 | 指定数据库的备份文件名。 |
| callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2634,6 +2745,14 @@ restore(srcName:string): Promise<void> ...@@ -2634,6 +2745,14 @@ restore(srcName:string): Promise<void>
| ------------------- | ------------------------- | | ------------------- | ------------------------- |
| Promise<void> | 无返回结果的Promise对象。 | | Promise<void> | 无返回结果的Promise对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2662,6 +2781,14 @@ setDistributedTables(tables: Array<string>, callback: AsyncCallback<voi ...@@ -2662,6 +2781,14 @@ setDistributedTables(tables: Array<string>, callback: AsyncCallback<voi
| tables | Array<string> | 是 | 要设置的分布式列表表名 | | tables | Array<string> | 是 | 要设置的分布式列表表名 |
| callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2696,6 +2823,14 @@ store.setDistributedTables(["EMPLOYEE"], function (err) { ...@@ -2696,6 +2823,14 @@ store.setDistributedTables(["EMPLOYEE"], function (err) {
| ------------------- | ------------------------- | | ------------------- | ------------------------- |
| Promise<void> | 无返回结果的Promise对象。 | | Promise<void> | 无返回结果的Promise对象。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2729,6 +2864,14 @@ obtainDistributedTableName(device: string, table: string, callback: AsyncCallbac ...@@ -2729,6 +2864,14 @@ obtainDistributedTableName(device: string, table: string, callback: AsyncCallbac
| table | string | 是 | 远程设备的本地表名。 | | table | string | 是 | 远程设备的本地表名。 |
| callback | AsyncCallback<string> | 是 | 指定的callback回调函数。如果操作成功,返回远程设备的分布式表名。 | | callback | AsyncCallback<string> | 是 | 指定的callback回调函数。如果操作成功,返回远程设备的分布式表名。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2782,6 +2925,14 @@ store.obtainDistributedTableName(deviceId, "EMPLOYEE", function (err, tableName) ...@@ -2782,6 +2925,14 @@ store.obtainDistributedTableName(deviceId, "EMPLOYEE", function (err, tableName)
| --------------------- | ----------------------------------------------------- | | --------------------- | ----------------------------------------------------- |
| Promise<string> | Promise对象。如果操作成功,返回远程设备的分布式表名。 | | Promise<string> | Promise对象。如果操作成功,返回远程设备的分布式表名。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2825,6 +2976,14 @@ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array ...@@ -2825,6 +2976,14 @@ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array
| predicates | [RdbPredicates](#rdbpredicates) | 是 | 约束同步数据和设备。 | | predicates | [RdbPredicates](#rdbpredicates) | 是 | 约束同步数据和设备。 |
| callback | AsyncCallback<Array<[string, number]>> | 是 | 指定的callback回调函数,用于向调用者发送同步结果。string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 | | callback | AsyncCallback<Array<[string, number]>> | 是 | 指定的callback回调函数,用于向调用者发送同步结果。string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -2881,6 +3040,14 @@ store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates, function (err, r ...@@ -2881,6 +3040,14 @@ store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates, function (err, r
| -------------------------------------------- | ------------------------------------------------------------ | | -------------------------------------------- | ------------------------------------------------------------ |
| Promise<Array<[string, number]>> | Promise对象,用于向调用者发送同步结果。string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 | | Promise<Array<[string, number]>> | Promise对象,用于向调用者发送同步结果。string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ---------------------------- |
| 14800000 | Inner error. |
**示例:** **示例:**
```js ```js
...@@ -3111,7 +3278,7 @@ goTo(offset:number): boolean ...@@ -3111,7 +3278,7 @@ goTo(offset:number): boolean
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
**示例:** **示例:**
...@@ -3152,7 +3319,7 @@ goToRow(position: number): boolean ...@@ -3152,7 +3319,7 @@ goToRow(position: number): boolean
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
**示例:** **示例:**
...@@ -3188,7 +3355,7 @@ goToFirstRow(): boolean ...@@ -3188,7 +3355,7 @@ goToFirstRow(): boolean
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
**示例:** **示例:**
...@@ -3223,7 +3390,7 @@ goToLastRow(): boolean ...@@ -3223,7 +3390,7 @@ goToLastRow(): boolean
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
**示例:** **示例:**
...@@ -3258,7 +3425,7 @@ goToNextRow(): boolean ...@@ -3258,7 +3425,7 @@ goToNextRow(): boolean
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
**示例:** **示例:**
...@@ -3293,7 +3460,7 @@ goToPreviousRow(): boolean ...@@ -3293,7 +3460,7 @@ goToPreviousRow(): boolean
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
**示例:** **示例:**
...@@ -3328,6 +3495,14 @@ getBlob(columnIndex: number): Uint8Array ...@@ -3328,6 +3495,14 @@ getBlob(columnIndex: number): Uint8Array
| ---------- | -------------------------------- | | ---------- | -------------------------------- |
| Uint8Array | 以字节数组的形式返回指定列的值。 | | Uint8Array | 以字节数组的形式返回指定列的值。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ |
| 14800013 | The column value is null or the column type is incompatible. |
**示例:** **示例:**
```js ```js
...@@ -3354,6 +3529,14 @@ getString(columnIndex: number): string ...@@ -3354,6 +3529,14 @@ getString(columnIndex: number): string
| ------ | ---------------------------- | | ------ | ---------------------------- |
| string | 以字符串形式返回指定列的值。 | | string | 以字符串形式返回指定列的值。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ |
| 14800013 | The column value is null or the column type is incompatible. |
**示例:** **示例:**
```js ```js
...@@ -3380,6 +3563,14 @@ getLong(columnIndex: number): number ...@@ -3380,6 +3563,14 @@ getLong(columnIndex: number): number
| ------ | ------------------------------------------------------------ | | ------ | ------------------------------------------------------------ |
| number | 以Long形式返回指定列的值。<br>该接口支持的数据范围是:Number.MIN_SAFE_INTEGER ~ Number.MAX_SAFE_INTEGER,若超出该范围,建议使用[getDouble](#getdouble)。 | | number | 以Long形式返回指定列的值。<br>该接口支持的数据范围是:Number.MIN_SAFE_INTEGER ~ Number.MAX_SAFE_INTEGER,若超出该范围,建议使用[getDouble](#getdouble)。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ |
| 14800013 | The column value is null or the column type is incompatible. |
**示例:** **示例:**
```js ```js
...@@ -3406,6 +3597,14 @@ getDouble(columnIndex: number): number ...@@ -3406,6 +3597,14 @@ getDouble(columnIndex: number): number
| ------ | ---------------------------- | | ------ | ---------------------------- |
| number | 以double形式返回指定列的值。 | | number | 以double形式返回指定列的值。 |
**错误码:**
以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)
| **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ |
| 14800013 | The column value is null or the column type is incompatible. |
**示例:** **示例:**
```js ```js
...@@ -3472,4 +3671,4 @@ promiseClose.then((resultSet) => { ...@@ -3472,4 +3671,4 @@ promiseClose.then((resultSet) => {
| **错误码ID** | **错误信息** | | **错误码ID** | **错误信息** |
| ------------ | ------------------------------------------------------------ | | ------------ | ------------------------------------------------------------ |
| 14800012 | The result set is empty or the specified location is invalid. | | 14800012 | The result set is empty or the specified location is invalid. |
...@@ -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.
先完成此消息的编辑!
想要评论请 注册