<!--
{
  "documentType" : "article",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/error-information",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error Information"
}
-->

# Error Information

Diagnose errors generated by the Contacts framework.

## Topics

### Error domain

[`let CNErrorDomain: String`](/documentation/Contacts/CNErrorDomain)

The error domain for the Contacts framework.

### Error codes

[`struct CNError`](/documentation/Contacts/CNError)

Error information that may be returned when using the methods of the Contacts framework.

[`enum Code`](/documentation/Contacts/CNError/Code)

Error codes that the system may return when you use Contacts framework methods.

### Error data keys

[`let CNErrorUserInfoAffectedRecordsKey: String`](/documentation/Contacts/CNErrorUserInfoAffectedRecordsKey)

The contact, group, and container objects for which the error code applies.

[`let CNErrorUserInfoAffectedRecordIdentifiersKey: String`](/documentation/Contacts/CNErrorUserInfoAffectedRecordIdentifiersKey)

String objects for which the error code applies.

[`let CNErrorUserInfoValidationErrorsKey: String`](/documentation/Contacts/CNErrorUserInfoValidationErrorsKey)

An array of validation-related error objects.

[`let CNErrorUserInfoKeyPathsKey: String`](/documentation/Contacts/CNErrorUserInfoKeyPathsKey)

An array of key paths associated with a given error.

### Exceptions

[`let CNContactPropertyNotFetchedExceptionName: String`](/documentation/Contacts/CNContactPropertyNotFetchedExceptionName)

Exception thrown when an accessed property was not fetched.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)