---
title: "HKElectrocardiogramQuery.Result.error(_:)"
framework: healthkit
role: symbol
role_heading: Case
path: "healthkit/hkelectrocardiogramquery/result/error(_:)"
---

# HKElectrocardiogramQuery.Result.error(_:)

An error occurred while accessing the voltage measurements.

## Declaration

```swift
case error(any Error)
```

## See Also

### Results

- [HKElectrocardiogramQuery.Result.measurement(_:)](healthkit/hkelectrocardiogramquery/result/measurement(_:).md)
- [HKElectrocardiogramQuery.Result.done](healthkit/hkelectrocardiogramquery/result/done.md)
