<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_error_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_error_t"
  },
  "title" : "nw_error_t"
}
-->

# nw_error_t

The errors returned by the Network framework.

```
typealias nw_error_t = any OS_nw_error
```

## Topics

### Inspecting Errors

[`nw_error_get_error_domain`](/documentation/Network/nw_error_get_error_domain(_:))

Accesses the domain of the network error.

[`nw_error_domain_t`](/documentation/Network/nw_error_domain_t)

The error domain for errors used by the Network framework.

[`nw_error_get_error_code`](/documentation/Network/nw_error_get_error_code(_:))

Accesses the specific code of the network error.

[`nw_error_copy_cf_error`](/documentation/Network/nw_error_copy_cf_error(_:))

Returns a copy of a network error.



---

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)