错误码消息英文审校

Signed-off-by: 徐未来 <xuweilai2@huawei.com>
This commit is contained in:
徐未来 2024-06-03 10:23:55 +08:00
parent cf6e7b4926
commit 310e76a58e
3 changed files with 33 additions and 33 deletions

View File

@ -35,7 +35,7 @@ declare namespace systemDateTime {
* @param { number } time - Indicates the target timestamp(in milliseconds)
* @param { AsyncCallback<void> } callback - The callback of setTime
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Permission denied, Non system application use system APIs
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use
@ -49,7 +49,7 @@ declare namespace systemDateTime {
* @param { number } time - Indicates the target timestamp(in milliseconds)
* @returns { Promise<void> } The promise returned by the function
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Permission denied, Non system application use system APIs
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use
@ -226,7 +226,7 @@ declare namespace systemDateTime {
* @param { Date } date - The target date, it must > 0
* @param { AsyncCallback<void> } callback - The callback of setDate
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Permission denied, Non system application use system APIs
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed;
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use
@ -243,7 +243,7 @@ declare namespace systemDateTime {
* @param { Date } date - The target date, it must > 0
* @returns { Promise<void> } The promise returned by the function
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Permission denied, Non system application use system APIs
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed;
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use
@ -284,7 +284,7 @@ declare namespace systemDateTime {
* @param { string } timezone - The system time zone
* @param { AsyncCallback<void> } callback - The callback of setTimezone
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Permission denied, Non system application use system APIs
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use
@ -299,7 +299,7 @@ declare namespace systemDateTime {
* @param { string } timezone - The system time zone
* @returns { Promise<void> } The promise returned by the function
* @throws { BusinessError } 201 - Permission denied
* @throws { BusinessError } 202 - Permission denied, Non system application use system APIs
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use

View File

@ -36,7 +36,7 @@ declare namespace systemTime {
* @permission ohos.permission.SET_TIME
* @param { number } time - Target time stamp (ms)
* @param { AsyncCallback<void> } callback
* @throws { BusinessError } -1 - the parameter check failed or permission denied or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 7
* @deprecated since 9
@ -49,7 +49,7 @@ declare namespace systemTime {
* @permission ohos.permission.SET_TIME
* @param { number } time - Target time stamp (ms)
* @returns { Promise<void> }
* @throws { BusinessError } -1 - the parameter check failed or permission denied or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 7
* @deprecated since 9
@ -61,7 +61,7 @@ declare namespace systemTime {
*
* @param { boolean } isNano
* @param { AsyncCallback<number> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -73,7 +73,7 @@ declare namespace systemTime {
* Obtains the number of milliseconds that have elapsed since the Unix epoch.
*
* @param { AsyncCallback<number> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -86,7 +86,7 @@ declare namespace systemTime {
*
* @param { boolean } isNano
* @returns { Promise<number> }
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -99,7 +99,7 @@ declare namespace systemTime {
*
* @param { boolean } isNano
* @param { AsyncCallback<number> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -111,7 +111,7 @@ declare namespace systemTime {
* Obtains the number of milliseconds elapsed since the system was booted, not including deep sleep time.
*
* @param { AsyncCallback<number> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -124,7 +124,7 @@ declare namespace systemTime {
*
* @param { boolean } isNano
* @returns { Promise<number> }
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -137,7 +137,7 @@ declare namespace systemTime {
*
* @param { boolean } isNano
* @param { AsyncCallback<number> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -149,7 +149,7 @@ declare namespace systemTime {
* Obtains the number of milliseconds elapsed since the system was booted, including deep sleep time.
*
* @param { AsyncCallback<number> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -162,7 +162,7 @@ declare namespace systemTime {
*
* @param { boolean } isNano
* @returns { Promise<number> }
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -176,7 +176,7 @@ declare namespace systemTime {
* @permission ohos.permission.SET_TIME
* @param { Date } date - The target date
* @param { AsyncCallback<void> } callback
* @throws { BusinessError } -1 - the parameter check failed or permission denied or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 7
* @deprecated since 9
@ -189,7 +189,7 @@ declare namespace systemTime {
* @permission ohos.permission.SET_TIME
* @param { Date } date - The target date
* @returns { Promise<void> }
* @throws { BusinessError } -1 - the parameter check failed or permission denied or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 7
* @deprecated since 9
@ -200,7 +200,7 @@ declare namespace systemTime {
* Obtains the system date.
*
* @param { AsyncCallback<Date> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -212,7 +212,7 @@ declare namespace systemTime {
* Obtains the system date.
*
* @returns { Promise<Date> }
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -226,7 +226,7 @@ declare namespace systemTime {
* @permission ohos.permission.SET_TIME_ZONE
* @param { string } timezone - The system timezone
* @param { AsyncCallback<void> } callback
* @throws { BusinessError } -1 - the parameter check failed or permission denied or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 7
* @deprecated since 9
@ -239,7 +239,7 @@ declare namespace systemTime {
* @permission ohos.permission.SET_TIME_ZONE
* @param { string } timezone - The system timezone
* @returns { Promise<void> }
* @throws { BusinessError } -1 - the parameter check failed or permission denied or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 7
* @deprecated since 9
@ -250,7 +250,7 @@ declare namespace systemTime {
* Obtains the system timezone.
*
* @param { AsyncCallback<string> } callback
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9
@ -262,7 +262,7 @@ declare namespace systemTime {
* Obtains the system timezone.
*
* @returns { Promise<string> }
* @throws { BusinessError } -1 - the parameter check failed or system error.
* @throws { BusinessError } -1 - Parameter check failed, permission denied, or system error.
* @syscap SystemCapability.MiscServices.Time
* @since 8
* @deprecated since 9

View File

@ -75,7 +75,7 @@ declare namespace systemTimer {
*
* @param { TimerOptions } options - The timer options.
* @param { AsyncCallback<number> } callback - {number} is the timer ID.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -88,7 +88,7 @@ declare namespace systemTimer {
*
* @param { TimerOptions } options - The timer options.
* @returns { Promise<number> } the timer ID.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -104,7 +104,7 @@ declare namespace systemTimer {
* The time will be automatically set to 5000 milliseconds after the current time if the passed
* value is smaller than the current time plus 5000 milliseconds.
* @param { AsyncCallback<void> } callback - The callback function.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -120,7 +120,7 @@ declare namespace systemTimer {
* The time will be automatically set to 5000 milliseconds after the current time if the passed
* value is smaller than the current time plus 5000 milliseconds.
* @returns { Promise<void> } return a promise object.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -133,7 +133,7 @@ declare namespace systemTimer {
*
* @param { number } timer - The timer ID.
* @param { AsyncCallback<void> } callback - The callback function.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -146,7 +146,7 @@ declare namespace systemTimer {
*
* @param { number } timer - The timer ID.
* @returns { Promise<void> } return a promise object.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -159,7 +159,7 @@ declare namespace systemTimer {
*
* @param { number } timer - The timer ID.
* @param { AsyncCallback<void> } callback - The callback function.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.
@ -172,7 +172,7 @@ declare namespace systemTimer {
*
* @param { number } timer - The timer ID.
* @returns { Promise<void> } return a promise object.
* @throws { BusinessError } 202 - permission denied, Non system application use system APIs.
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @syscap SystemCapability.MiscServices.Time
* @systemapi Hide this for inner system use.