harmony 鸿蒙Time and Time Zone Service Error Codes

  • 2023-02-03
  • 浏览 (572)

Time and Time Zone Service Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

-1 Time and Time Zone Service Error

Error Message

The parameter check failed or permission denied or system error.

Description

This error code is reported when a parameter check failure, permission verification failure, or system operation error occurs.

Possible Cause

  1. The input parameter is invalid.
  2. The required permission is not configured. For example, ohos.permission.SET_TIME is not configured for setting the time or ohos.permission.SET_TIME_ZONE is not configured for setting the time zone.
  3. The system is not running properly due to a common kernel error, such as a memory allocation and multi-thread processing error.

Solution

  1. Make sure input parameters are passed in as required.
  2. Configure the ohos.permission.SET_TIME permission for setting the time and the ohos.permission.SET_TIME_ZONE permission for setting the time zone.
  3. Make sure the memory is sufficient.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Error Codes

harmony 鸿蒙Event Error Codes

harmony 鸿蒙DeviceUsageStatistics Error Codes

harmony 鸿蒙DistributedNotificationService Error Codes

harmony 鸿蒙Distributed Scheduler Error Codes

harmony 鸿蒙Ability Error Codes

harmony 鸿蒙Access Control Error Codes

harmony 鸿蒙Accessibility Error Codes

harmony 鸿蒙Account Management Error Codes

harmony 鸿蒙Animator Error Codes

0  赞