diff --git a/api/@ohos.app.ability.dataUriUtils.d.ts b/api/@ohos.app.ability.dataUriUtils.d.ts index 9f0e610ceb..cdaa9b52b1 100644 --- a/api/@ohos.app.ability.dataUriUtils.d.ts +++ b/api/@ohos.app.ability.dataUriUtils.d.ts @@ -31,7 +31,8 @@ declare namespace dataUriUtils { * * @param { string } uri - Indicates the uri object from which the ID is to be obtained. * @returns { number } Returns the ID attached to the end of the path component; - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ @@ -43,7 +44,8 @@ declare namespace dataUriUtils { * @param { string } uri - Indicates the uri string from which the ID is to be obtained. * @param { number } id - Indicates the ID to attach. * @returns { string } Returns the uri object with the given ID attached. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ @@ -54,7 +56,8 @@ declare namespace dataUriUtils { * * @param { string } uri - Indicates the uri object from which the ID is to be deleted. * @returns { string } Returns the uri object with the ID deleted. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ @@ -66,7 +69,8 @@ declare namespace dataUriUtils { * @param { string } uri - Indicates the uri object to be updated. * @param { number } id - Indicates the new ID. * @returns { string } Returns the updated uri object. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ diff --git a/api/@ohos.app.ability.dialogRequest.d.ts b/api/@ohos.app.ability.dialogRequest.d.ts index 67402c94cd..7c7f7f3278 100644 --- a/api/@ohos.app.ability.dialogRequest.d.ts +++ b/api/@ohos.app.ability.dialogRequest.d.ts @@ -163,7 +163,8 @@ declare namespace dialogRequest { * Send request result to caller. * * @param { RequestResult } result - result for request. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @StageModelOnly * @since 9 @@ -176,7 +177,8 @@ declare namespace dialogRequest { * * @param { Want } want - want from caller. * @returns { RequestInfo } Returns the request info from caller. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ @@ -187,7 +189,8 @@ declare namespace dialogRequest { * * @param { Want } want - want from caller. * @returns { RequestCallback } Returns the request callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ diff --git a/api/@ohos.app.ability.dialogSession.d.ts b/api/@ohos.app.ability.dialogSession.d.ts index c635f16239..1a06a1446e 100644 --- a/api/@ohos.app.ability.dialogSession.d.ts +++ b/api/@ohos.app.ability.dialogSession.d.ts @@ -172,7 +172,8 @@ declare namespace dialogSession { * @param { string } dialogSessionId - Query information by dialog session id. * @returns { DialogSessionInfo } Returns the session info. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000050 - Internal error. @@ -191,7 +192,8 @@ declare namespace dialogSession { * @param { boolean } isAllowed - allowed or disallowed to start target ability. * @returns { Promise } The promise returned by the sendDialogResult. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000050 - Internal error. @@ -210,7 +212,8 @@ declare namespace dialogSession { * @param { boolean } isAllowed - allowed or disallowed to start target ability. * @param { AsyncCallback } callback - The callback of sendDialogResult. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000050 - Internal error. diff --git a/api/@ohos.app.businessAbilityRouter.d.ts b/api/@ohos.app.businessAbilityRouter.d.ts index d52ebf5b58..be342515c1 100644 --- a/api/@ohos.app.businessAbilityRouter.d.ts +++ b/api/@ohos.app.businessAbilityRouter.d.ts @@ -108,7 +108,8 @@ declare namespace businessAbilityRouter { * result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - non-system app called system api. - * @throws { BusinessError } 401 - The parameter check failed. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 10 @@ -127,7 +128,8 @@ declare namespace businessAbilityRouter { * @returns { Promise> } Returns a list of business ability info objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - non-system app called system api. - * @throws { BusinessError } 401 - The parameter check failed. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 10 diff --git a/api/application/EventHub.d.ts b/api/application/EventHub.d.ts index b22ad54876..8b1a3fb6c1 100644 --- a/api/application/EventHub.d.ts +++ b/api/application/EventHub.d.ts @@ -50,7 +50,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Function } callback - Indicates the callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @since 9 @@ -60,7 +61,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Function } callback - Indicates the callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @atomicservice @@ -71,7 +73,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Function } callback - Indicates the callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @crossplatform @@ -85,7 +88,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Function } [callback] - Indicates the callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @since 9 @@ -95,7 +99,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Function } [callback] - Indicates the callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @atomicservice @@ -106,7 +111,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Function } [callback] - Indicates the callback. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @crossplatform @@ -120,7 +126,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Object[] } args - Indicates the callback arguments. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @since 9 @@ -130,7 +137,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Object[] } args - Indicates the callback arguments. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @atomicservice @@ -141,7 +149,8 @@ export default class EventHub { * * @param { string } event - Indicates the event. * @param { Object[] } args - Indicates the callback arguments. - * @throws { BusinessError } 401 - If the input parameter is not valid parameter. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @crossplatform