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
- The input parameter is invalid.
- 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.
- The system is not running properly due to a common kernel error, such as a memory allocation and multi-thread processing error.
Solution
- Make sure input parameters are passed in as required.
- Configure the ohos.permission.SET_TIME permission for setting the time and the ohos.permission.SET_TIME_ZONE permission for setting the time zone.
- Make sure the memory is sufficient.