diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 16299a3c462325356695c2cef0e617836c26e655..483da08c7a22b402f874a0edddf78cdaec130d82 100644 --- a/api/@ohos.resourceManager.d.ts +++ b/api/@ohos.resourceManager.d.ts @@ -2448,7 +2448,6 @@ declare namespace resourceManager { * @param { number } resId - Indicates the resource ID. * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The character string corresponding to the resource ID. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -2548,13 +2547,11 @@ declare namespace resourceManager { * @param { Resource } resource - Indicates the resource object. * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The character string corresponding to the resource object. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID. * @syscap SystemCapability.Global.ResourceManager - * @stagemodelonly * @crossplatform * @atomicservice * @since 20 @@ -2643,7 +2640,6 @@ declare namespace resourceManager { * @param { string } resName - Indicates the resource name. * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The character string corresponding to the resource name. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3219,7 +3215,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3240,7 +3235,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3262,7 +3256,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3284,13 +3277,11 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID. * @syscap SystemCapability.Global.ResourceManager - * @stagemodelonly * @crossplatform * @atomicservice * @since 20 @@ -3307,7 +3298,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3328,7 +3318,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3350,7 +3339,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3371,7 +3359,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3393,7 +3380,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3415,13 +3401,11 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the ID string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001001 - Invalid resource ID. * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID. * @syscap SystemCapability.Global.ResourceManager - * @stagemodelonly * @crossplatform * @atomicservice * @since 20 @@ -3438,7 +3422,6 @@ declare namespace resourceManager { * @param { Array } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. @@ -3459,7 +3442,6 @@ declare namespace resourceManager { * @param { (string | number)[] } args - Indicates the formatting string resource parameters. * @returns { string } The singular-plural character string represented by the name string * corresponding to the specified number. - * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types. * @throws { BusinessError } 9001003 - Invalid resource name. * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name. * @throws { BusinessError } 9001006 - The resource is referenced cyclically. diff --git a/api/global/resource.d.ts b/api/global/resource.d.ts index 6ebfe1cd8bb8381540c559a22049267a53b6673e..15b2ce8e979626fe48b73f22b4935e35a33b38a7 100644 --- a/api/global/resource.d.ts +++ b/api/global/resource.d.ts @@ -98,7 +98,7 @@ export interface Resource { * * @type { ?any[] } * @syscap SystemCapability.Global.ResourceManager - * @since 7 + * @since 9 */ /** * Set params. @@ -128,7 +128,7 @@ export interface Resource { * * @type { ?number } * @syscap SystemCapability.Global.ResourceManager - * @since 7 + * @since 9 */ /** * Set type.