---
title: Error domains
framework: corefoundation
role: collectionGroup
role_heading: API Collection
path: corefoundation/error-domains
---

# Error domains

These constants define domains for CFError objects.

## Overview

Overview The value of “code” will correspond to preexisting values in these domains.

## Topics

### Constants

- [kCFErrorDomainPOSIX](corefoundation/kcferrordomainposix.md)
- [kCFErrorDomainOSStatus](corefoundation/kcferrordomainosstatus.md)
- [kCFErrorDomainMach](corefoundation/kcferrordomainmach.md)
- [kCFErrorDomainCocoa](corefoundation/kcferrordomaincocoa.md)

## See Also

### Constants

- [Keys for the user info dictionary](corefoundation/keys-for-the-user-info-dictionary.md)
