---
title: cancelled
framework: Core Spotlight
role: symbol
role_heading: Type Property
platforms: [iOS 10.0+, iPadOS 10.0+, Mac Catalyst 13.1+, macOS 10.12+, visionOS 1.0+]
path: corespotlight/cssearchqueryerror/cancelled
---

# cancelled

The query stopped because someone canceled it.

## Declaration

```swift
static var cancelled: CSSearchQueryError.Code { get }
```

## Discussion

Discussion The system reports this error if your code called the cancel() method.

## See Also

### Getting the error codes

- [indexUnreachable](corespotlight/cssearchqueryerror/indexunreachable.md)
- [invalidQuery](corespotlight/cssearchqueryerror/invalidquery.md)
- [unknown](corespotlight/cssearchqueryerror/unknown.md)
