提交 ad296d0f 编写于 作者: Y ylq121

errcode

Signed-off-by: Nylq121 <yangqing89@huawei.com>
上级 aef3a217
......@@ -2112,6 +2112,7 @@ put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncC
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2161,6 +2162,7 @@ put(key: string, value: Uint8Array | string | number | boolean): Promise&lt;void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2202,6 +2204,7 @@ putBatch(entries: Entry[], callback: AsyncCallback&lt;void&gt;): void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2269,6 +2272,7 @@ putBatch(entries: Entry[]): Promise&lt;void&gt;
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2329,6 +2333,7 @@ putBatch(value: Array&lt;ValuesBucket&gt;, callback: AsyncCallback&lt;void&gt;):
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2386,6 +2391,7 @@ putBatch(value: Array&lt;ValuesBucket&gt;): Promise&lt;void&gt;
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2434,6 +2440,7 @@ delete(key: string, callback: AsyncCallback&lt;void&gt;): void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2489,6 +2496,7 @@ delete(key: string): Promise&lt;void&gt;
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2537,6 +2545,7 @@ delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallb
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2587,6 +2596,7 @@ delete(predicates: dataSharePredicates.DataSharePredicates): Promise&lt;void&gt;
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2636,6 +2646,7 @@ deleteBatch(keys: string[], callback: AsyncCallback&lt;void&gt;): void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -2704,6 +2715,7 @@ deleteBatch(keys: string[]): Promise&lt;void&gt;
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -3223,9 +3235,11 @@ getResultSet(keyPrefix: string, callback: AsyncCallback&lt;KVStoreResultSet&gt;)
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
**示例:**
```js
......@@ -3297,6 +3311,7 @@ getResultSet(keyPrefix: string): Promise&lt;KVStoreResultSet&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -3360,6 +3375,7 @@ getResultSet(query: Query, callback: AsyncCallback&lt;KVStoreResultSet&gt;): voi
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -3428,6 +3444,7 @@ getResultSet(query: Query): Promise&lt;KVStoreResultSet&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -3490,6 +3507,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -3551,6 +3569,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise&lt;KV
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -4030,6 +4049,7 @@ startTransaction(callback: AsyncCallback&lt;void&gt;): void
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -4098,6 +4118,7 @@ startTransaction(): Promise&lt;void&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
......@@ -4646,7 +4667,7 @@ on(event: 'dataChange', type: SubscribeType, listener: Callback&lt;ChangeNotific
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max subscribe limits. |
| 15100001 | Over max limits. |
| 15100005 | Database or result set already closed. |
**示例:**
......@@ -4757,9 +4778,7 @@ off(event: 'syncComplete', syncCallback?: Callback&lt;Array&lt;[string, number]&
取消订阅同步完成事件回调通知。
**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core
**参数:**
**系统能力:** SystemCapability.DistributedDataManager.KVStore.
| 参数名 | 类型 | 必填 | 说明 |
| ------------ | --------------------------------------------- | ---- | ---------------------------------------------------------- |
......@@ -5634,6 +5653,7 @@ getResultSet(keyPrefix: string, callback: AsyncCallback&lt;KVStoreResultSet&gt;)
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -5708,6 +5728,7 @@ getResultSet(keyPrefix: string): Promise&lt;KVStoreResultSet&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -5772,6 +5793,7 @@ getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback&lt;KVS
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -5828,6 +5850,7 @@ getResultSet(deviceId: string, keyPrefix: string): Promise&lt;KVStoreResultSet&g
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -5875,6 +5898,7 @@ getResultSet(deviceId: string, query: Query, callback: AsyncCallback&lt;KVStoreR
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -5952,6 +5976,7 @@ getResultSet(deviceId: string, query: Query): Promise&lt;KVStoreResultSet&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -6025,6 +6050,7 @@ getResultSet(query: Query): Promise&lt;KVStoreResultSet&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -6091,6 +6117,7 @@ getResultSet(deviceId: string, query: Query): Promise&lt;KVStoreResultSet&gt;
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -6161,6 +6188,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -6222,6 +6250,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise&lt;KV
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -6275,6 +6304,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......@@ -6337,6 +6367,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat
| **错误码ID** | **错误信息** |
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
......
......@@ -8,19 +8,20 @@
**错误信息**
Over max subscribe limits.
Over max limits.
**错误描述**
该错误码表示在调用数据库变化订阅on接口时,订阅数量已超过最大限制
超过数据库最大支持上限
**可能原因**
在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。
1. 在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。
2. 数据库当前打开的结果集数目超过最大限制。
**处理步骤**
取消对数据库的部分订阅后,再次尝试订阅
如果当前操作为数据库订阅操作,取消对数据库的部分订阅后,再次尝试订阅,否则,关闭部分打开的结果集后重试
## 15100002 打开已有数据库时参数配置发生变化
......@@ -102,4 +103,21 @@ Database or result set already closed.
**处理步骤**
1. 在数据库相关操作前,请重新打开数据库之后再重试当前操作。
2. 在查询结果集相关操作前,请重新查询获取结果集之后再重试当前操作。
\ No newline at end of file
2. 在查询结果集相关操作前,请重新查询获取结果集之后再重试当前操作。
## 14800047 WAL文件大小超过默认值
**错误信息**
WAL file size exceeds the default limit.
**错误描述**
WAL文件大小超过默认上限。
**可能原因**
WAL文件大小超过默认上限。
**处理步骤**
1. 检查结果集或者事务是否未关闭。
2. 关闭所有结果集或者事务。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册