Enumeration

NWError

The errors returned by objects in the Network framework.

Declaration

enum NWError

Topics

Checking Error Types

case posix(POSIXErrorCode)

A POSIX error, which is used for most network protocol and routing errors.

case dns(DNSServiceErrorType)

A DNS error encountered in resolving, browsing, or advertising.

case tls(OSStatus)

A TLS error reported by a TLS connection or listener.

Inspecting Errors

var debugDescription: String

The description of the error.

var localizedDescription: String

The localized description of the error.

static func != (NWError, NWError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Relationships

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software