diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index b481c7780ca62b30d36ca4d3704388915b6cff73..61e1e4f5c556d59d11e9bd2b6026277324a7fdae 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -1484,7 +1484,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Callback that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000001 - Invalid display name * @throws { BusinessError } 14000011 - System inner fail @@ -1515,7 +1515,7 @@ declare namespace photoAccessHelper { * @returns { Promise } Returns void * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000001 - Invalid display name * @throws { BusinessError } 14000011 - System inner fail @@ -1568,7 +1568,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Callback used to return the file descriptor (FD) of the file opened. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -1583,7 +1583,7 @@ declare namespace photoAccessHelper { * @returns { Promise } Returns the read only fd * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4201,7 +4201,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback> } callback - Callback used to return the image and video assets obtained. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4246,7 +4246,7 @@ declare namespace photoAccessHelper { * @returns { Promise> } Returns the fetch result * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4358,7 +4358,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Returns void * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4373,7 +4373,7 @@ declare namespace photoAccessHelper { * @returns { Promise } Returns void * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4390,7 +4390,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Callback that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4408,7 +4408,7 @@ declare namespace photoAccessHelper { * @returns { Promise } Returns void * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4426,7 +4426,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Callback that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4444,7 +4444,7 @@ declare namespace photoAccessHelper { * @returns { Promise } Returns void * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4636,7 +4636,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback> } callback - Callback used to return the image and video assets obtained. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4667,7 +4667,7 @@ declare namespace photoAccessHelper { * @returns { Promise> } Returns the fetch result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4814,7 +4814,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Callback used to return the URI of the created image or video asset. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4849,7 +4849,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback } callback - Callback used to return the URI of the created image or video asset. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -4886,7 +4886,7 @@ declare namespace photoAccessHelper { * @returns { Promise } Returns the uri of the newly created asset * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -5003,7 +5003,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback> } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -5043,7 +5043,7 @@ declare namespace photoAccessHelper { * @param { AsyncCallback> } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core @@ -5080,7 +5080,7 @@ declare namespace photoAccessHelper { * @returns { Promise> } - Returns the fetch result * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 13900012 - Permission denied + * @throws { BusinessError } 201 - Permission denied * @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 14000011 - System inner fail * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core