HKError.Code.errorNoData
Data is unavailable for the requested query and predicate.
Declaration
case errorNoDataDiscussion
This error indicates that no data exists that corresponds to a particular query, so the system can’t calculate the query’s result. HKStatisticsQuery queries return this error when HealthKit can’t return the data needed to calculate the statistics.
See Also
Errors
HKError.Code.errorHealthDataUnavailableHKError.Code.errorHealthDataRestrictedHKError.Code.errorInvalidArgumentHKError.Code.errorAuthorizationDeniedHKError.Code.errorAuthorizationNotDeterminedHKError.Code.errorRequiredAuthorizationDeniedHKError.Code.errorDatabaseInaccessibleHKError.Code.errorUserCanceledHKError.Code.errorAnotherWorkoutSessionStartedHKError.Code.errorUserExitedWorkoutSession