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

# CSSearchQueryError.Code.cancelled

The query stopped because someone canceled it.

## Declaration

```swift
case cancelled
```

## Discussion

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

## See Also

### Getting the error codes

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