From bd7293d672f8826089def3b20cf70afbfd9cd91b Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Mon, 28 Apr 2025 16:21:36 +0800 Subject: [PATCH 1/5] fix error message Signed-off-by: wanghuajian-6 --- api/@ohos.data.distributedDataObject.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index a819afd18e..fa89e2efb4 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -304,7 +304,8 @@ declare namespace distributedDataObject { * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. One possible reason is that + * the distributed object has already been created. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ @@ -326,7 +327,8 @@ declare namespace distributedDataObject { * * @param {AsyncCallback} callback - The callback of setSessionId. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. One possible reason is that + * the distributed object has already been created. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 20 */ @@ -353,7 +355,8 @@ declare namespace distributedDataObject { * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. One possible reason is that + * the distributed object has already been created. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ -- Gitee From a02b281b185674bd8829530dcaed704af0c1128e Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Mon, 28 Apr 2025 17:30:20 +0800 Subject: [PATCH 2/5] fix error message Signed-off-by: wanghuajian-6 --- api/@ohos.data.distributedDataObject.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index fa89e2efb4..6980b6fc2c 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -304,8 +304,8 @@ declare namespace distributedDataObject { * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. One possible reason is that - * the distributed object has already been created. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object have already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ @@ -327,8 +327,8 @@ declare namespace distributedDataObject { * * @param {AsyncCallback} callback - The callback of setSessionId. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. One possible reason is that - * the distributed object has already been created. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object have already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 20 */ @@ -355,8 +355,8 @@ declare namespace distributedDataObject { * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. One possible reason is that - * the distributed object has already been created. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object have already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ -- Gitee From 3bdd619cbe113f64bc854cecaa09dcc8566b2201 Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Tue, 29 Apr 2025 16:05:13 +0800 Subject: [PATCH 3/5] fix error message Signed-off-by: wanghuajian-6 --- api/@ohos.data.distributedDataObject.d.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index 6980b6fc2c..bcc4b260a4 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -291,7 +291,8 @@ declare namespace distributedDataObject { * @param {AsyncCallback} callback - The callback of setSessionId. * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 9 */ @@ -305,7 +306,7 @@ declare namespace distributedDataObject { * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that - * other distributed data object have already set the same sessionId. + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ @@ -318,7 +319,8 @@ declare namespace distributedDataObject { * @param {AsyncCallback} callback - The callback of setSessionId. * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 9 */ @@ -328,7 +330,7 @@ declare namespace distributedDataObject { * @param {AsyncCallback} callback - The callback of setSessionId. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that - * other distributed data object have already set the same sessionId. + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 20 */ @@ -342,7 +344,8 @@ declare namespace distributedDataObject { * @returns {Promise} - The promise returned by the function. * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 9 */ @@ -356,7 +359,7 @@ declare namespace distributedDataObject { * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that - * other distributed data object have already set the same sessionId. + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ -- Gitee From 8daf397e571f70a0222ed3f86c27b57deb1fba1e Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Tue, 29 Apr 2025 16:09:33 +0800 Subject: [PATCH 4/5] fix error message Signed-off-by: wanghuajian-6 --- api/@ohos.data.distributedDataObject.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index bcc4b260a4..1b0bec149e 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -358,8 +358,7 @@ declare namespace distributedDataObject { * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that - * other distributed data object has already set the same sessionId. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ -- Gitee From f8c89d658104975801ead3fa50619318cac6a491 Mon Sep 17 00:00:00 2001 From: wanghuajian-6 Date: Tue, 29 Apr 2025 16:10:40 +0800 Subject: [PATCH 5/5] fix error message Signed-off-by: wanghuajian-6 --- api/@ohos.data.distributedDataObject.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index 1b0bec149e..ceabe36b51 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -329,8 +329,7 @@ declare namespace distributedDataObject { * * @param {AsyncCallback} callback - The callback of setSessionId. * @throws {BusinessError} 401 - Parameter error. Incorrect parameter types. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that - * other distributed data object has already set the same sessionId. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 20 */ @@ -358,7 +357,8 @@ declare namespace distributedDataObject { * @throws {BusinessError} 201 - Permission verification failed. * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. The sessionId allows only letters, digits, and underscores(_), and cannot exceed 128 in length. - * @throws {BusinessError} 15400001 - Failed to create the in-memory database. + * @throws {BusinessError} 15400001 - Failed to create the in-memory database. The possible reason is that + * other distributed data object has already set the same sessionId. * @syscap SystemCapability.DistributedDataManager.DataObject.DistributedObject * @since 12 */ -- Gitee