---
title: unknownError
framework: Core Spotlight
role: symbol
role_heading: Type Property
platforms: [iOS 9.0+, iPadOS 9.0+, Mac Catalyst 13.1+, macOS 10.11+, visionOS 1.0+]
path: corespotlight/csindexerror/unknownerror
---

# unknownError

An unknown error occurred.

## Declaration

```swift
static var unknownError: CSIndexError.Code { get }
```

## See Also

### Getting the error codes

- [indexUnavailableError](corespotlight/csindexerror/indexunavailableerror.md)
- [indexingUnsupported](corespotlight/csindexerror/indexingunsupported.md)
- [invalidClientStateError](corespotlight/csindexerror/invalidclientstateerror.md)
- [invalidItemError](corespotlight/csindexerror/invaliditemerror.md)
- [mismatchedClientState](corespotlight/csindexerror/mismatchedclientstate.md)
- [quotaExceeded](corespotlight/csindexerror/quotaexceeded.md)
- [remoteConnectionError](corespotlight/csindexerror/remoteconnectionerror.md)
