<!--
{
  "documentType" : "article",
  "framework" : "CFNetwork",
  "identifier" : "/documentation/CFNetwork/error-domains",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error Domains"
}
-->

# Error Domains

High-level error domains.

## Discussion

To determine the source of an error, examine the `userInfo` dictionary included in the `CFError` object returned by a function call or call <doc://com.apple.documentation/documentation/CoreFoundation/CFErrorGetDomain(_:)> and pass in the `CFError` object and the domain whose value you want to read.

## Topics

### Constants

[`let kCFErrorDomainCFNetwork: CFString`](/documentation/CFNetwork/kCFErrorDomainCFNetwork)

[`let kCFErrorDomainWinSock: CFString`](/documentation/CFNetwork/kCFErrorDomainWinSock)



---

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)