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

# CSIndexError.Code

Error codes that describe indexing-specific errors.

## Declaration

```swift
enum Code
```

## Topics

### Getting the indexing error codes

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

### Initializers

- [init(rawValue:)](corespotlight/csindexerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
