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

# CSIndexError

Index errors returned by Core Spotlight.

## Declaration

```swift
struct CSIndexError
```

## Topics

### 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)
- [unknownError](corespotlight/csindexerror/unknownerror.md)

### Getting codes for indexing errors

- [CSIndexError.Code](corespotlight/csindexerror/code.md)

### Getting the error description

- [errorDomain](corespotlight/csindexerror/errordomain.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [CSSearchQueryError](corespotlight/cssearchqueryerror.md)
- [CSIndex Errors](corespotlight/csindex-errors.md)
- [CSSearchQuery Errors](corespotlight/cssearchquery-errors.md)
