---
title: operationCancelled
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/operationcancelled
---

# operationCancelled

An error indicating the user canceled the operation.

## Declaration

```swift
static var operationCancelled: HMError.Code { get }
```

## See Also

### Detecting operation errors

- [operationInProgress](homekit/hmerror/operationinprogress.md)
- [operationTimedOut](homekit/hmerror/operationtimedout.md)
