mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
补充401描述
Signed-off-by: savior-xzh <xuzheheng2@huawei.com> Change-Id: I390d6343ef43debdad20a642d98d288d0d95f3ed
This commit is contained in:
parent
faa563b801
commit
256d727b08
12
api/@ohos.app.ability.dataUriUtils.d.ts
vendored
12
api/@ohos.app.ability.dataUriUtils.d.ts
vendored
@ -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
|
||||
*/
|
||||
|
9
api/@ohos.app.ability.dialogRequest.d.ts
vendored
9
api/@ohos.app.ability.dialogRequest.d.ts
vendored
@ -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
|
||||
*/
|
||||
|
9
api/@ohos.app.ability.dialogSession.d.ts
vendored
9
api/@ohos.app.ability.dialogSession.d.ts
vendored
@ -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<void> } 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<void> } 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.
|
||||
|
6
api/@ohos.app.businessAbilityRouter.d.ts
vendored
6
api/@ohos.app.businessAbilityRouter.d.ts
vendored
@ -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<Array<BusinessAbilityInfo>> } 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
|
||||
|
27
api/application/EventHub.d.ts
vendored
27
api/application/EventHub.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user