From 6dee84fdeb091ee56f4fba5b3eeef1739f2f6bb9 Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Mon, 28 Apr 2025 17:24:31 +0800 Subject: [PATCH 1/3] fix error message Signed-off-by: wanghuajian-6 --- .../errorcode-distributed-dataObject.md | 4 ++-- .../js-apis-data-distributedobject.md | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md b/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md index 71180d2fc26..f2d4ad6156d 100644 --- a/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md +++ b/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md @@ -8,11 +8,11 @@ **错误信息** -Failed to create the in-memory database. +Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. **错误描述** -创建内存数据库失败。 +创建内存数据库失败, 可能原因是该分布式对象已经被创建。 **可能原因** diff --git a/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md b/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md index a66875397b7..6d9394acdb9 100644 --- a/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md +++ b/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md @@ -178,11 +178,11 @@ setSessionId(sessionId: string, callback: AsyncCallback<void>): void 以下错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[分布式数据对象错误码](errorcode-distributed-dataObject.md)。 - | 错误码ID | 错误信息 | - | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + | 错误码ID | 错误信息 | + |--------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | 201 | Permission verification failed. | | 401 | Parameter error. Possible causes: 1. Incorrect parameter types; 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. | - | 15400001 | Failed to create the in-memory database. | + | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. | **示例:** @@ -215,10 +215,10 @@ setSessionId(callback: AsyncCallback<void>): void 以下错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[分布式数据对象错误码](errorcode-distributed-dataObject.md)。 - | 错误码ID | 错误信息 | - | -------- | -------- | - | 401 | Parameter error. Incorrect parameter types. | - | 15400001 | Failed to create the in-memory database. | + | 错误码ID | 错误信息 | + |------------------------------------------------------------------------------------------------------------------------------------------| -------- | + | 401 | Parameter error. Incorrect parameter types. | + | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. | **示例:** @@ -259,11 +259,11 @@ setSessionId(sessionId?: string): Promise<void> 以下错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[分布式数据对象错误码](errorcode-distributed-dataObject.md)。 - | 错误码ID | 错误信息 | - | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + | 错误码ID | 错误信息 | + |--------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | 201 | Permission verification failed. | | 401 | Parameter error. Possible causes: 1. Incorrect parameter types; 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. | - | 15400001 | Failed to create the in-memory database. | + | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. | **示例:** -- Gitee From 3fa127312afbe5a7be88d22cbbce25f717e8da04 Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Tue, 29 Apr 2025 16:05:27 +0800 Subject: [PATCH 2/3] fix error message Signed-off-by: wanghuajian-6 --- .../apis-arkdata/js-apis-data-distributedobject.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md b/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md index 6d9394acdb9..2b0643732e8 100644 --- a/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md +++ b/zh-cn/application-dev/reference/apis-arkdata/js-apis-data-distributedobject.md @@ -182,7 +182,7 @@ setSessionId(sessionId: string, callback: AsyncCallback<void>): void |--------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | 201 | Permission verification failed. | | 401 | Parameter error. Possible causes: 1. Incorrect parameter types; 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. | - | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. | + | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object has already set the same sessionId. | **示例:** @@ -215,10 +215,10 @@ setSessionId(callback: AsyncCallback<void>): void 以下错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[分布式数据对象错误码](errorcode-distributed-dataObject.md)。 - | 错误码ID | 错误信息 | - |------------------------------------------------------------------------------------------------------------------------------------------| -------- | - | 401 | Parameter error. Incorrect parameter types. | - | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. | + | 错误码ID | 错误信息 | + |----------------------------------------------------------------------------------------------------------------------------------------| -------- | + | 401 | Parameter error. Incorrect parameter types. | + | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object has already set the same sessionId. | **示例:** @@ -263,7 +263,7 @@ setSessionId(sessionId?: string): Promise<void> |--------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | 201 | Permission verification failed. | | 401 | Parameter error. Possible causes: 1. Incorrect parameter types; 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. | - | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object have already set the same sessionId. | + | 15400001 | Failed to create the in-memory database. The possible reason is that other distributed data object has already set the same sessionId. | **示例:** -- Gitee From 10ce413a4c905b802e18fb82e389342a316c4aab Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Tue, 29 Apr 2025 16:25:54 +0800 Subject: [PATCH 3/3] fix error message Signed-off-by: wanghuajian-6 --- .../reference/apis-arkdata/errorcode-distributed-dataObject.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md b/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md index f2d4ad6156d..3fb8fb41533 100644 --- a/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md +++ b/zh-cn/application-dev/reference/apis-arkdata/errorcode-distributed-dataObject.md @@ -12,7 +12,7 @@ Failed to create the in-memory database. The possible reason is that other distr **错误描述** -创建内存数据库失败, 可能原因是该分布式对象已经被创建。 +创建内存数据库失败, 可能原因是已有其他分布式数据对象设置了相同的sessionId。 **可能原因** -- Gitee