---
title: keyPaths
framework: contacts
role: symbol
role_heading: Instance Property
path: contacts/cnerror/keypaths
---

# keyPaths

An array of key paths associated with the error.

## Declaration

```swift
var keyPaths: [String]? { get }
```

## Discussion

Discussion For validation errors, this contains key paths to specific object properties.

## See Also

### Error details

- [affectedRecordIdentifiers](contacts/cnerror/affectedrecordidentifiers.md)
- [affectedRecords](contacts/cnerror/affectedrecords.md)
- [CNError.Code](contacts/cnerror/code.md)
