<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware7WAErrorO"
  },
  "title" : "WAError"
}
-->

# WAError

An error in Wi-Fi Aware.

```
enum WAError
```

## Overview

Wi-Fi Aware may throw a [`WAError`](/documentation/WiFiAware/WAError) to indicate when an underlying issue occurs, with the [Network](https://developer.apple.com/documentation/Network) framework throwing an `NWError`. If the `NWError` occurs due to Wi-Fi Aware, then the `Network/NWError/wifiAware` property on `Network/NWError` can provide access to additional information about the underlying Wi-Fi Aware error.

## Topics

### Checking for general errors

[`WAError.error(_:)`](/documentation/WiFiAware/WAError/error(_:))

A general error.

[`ErrorDetails`](/documentation/WiFiAware/WAError/ErrorDetails)

The optional details describing the error.

### Checking for missing entitlement

[`EntitlementMissingDetails`](/documentation/WiFiAware/WAError/EntitlementMissingDetails)

The optional details describing the missing entitlement.

[`WAError.entitlementMissing(_:)`](/documentation/WiFiAware/WAError/entitlementMissing(_:))

An error that occurs if your app is missing the entitlement needed for the requested operation.

### Checking for unsupported host hardware

[`WAError.wifiAwareUnsupported(_:)`](/documentation/WiFiAware/WAError/wifiAwareUnsupported(_:))

An error that occurs if Wi-Fi Aware isn’t supported on the device.

[`WiFiAwareUnsupportedDetails`](/documentation/WiFiAware/WAError/WiFiAwareUnsupportedDetails)

The optional details describing the unavailability of Wi-Fi Aware on the device.

### Checking for unsupported requested functions

### Checking for unpermitted operations

### Checking for prohibited operations

### Checking for insufficient radio resources

[`WAError.noRadioResources(_:)`](/documentation/WiFiAware/WAError/noRadioResources(_:))

An error that occurs if the radio lacks resources.

[`NoRadioResourcesDetails`](/documentation/WiFiAware/WAError/NoRadioResourcesDetails)

The optional details describing what resources are lacking.

### Checking for undeclared services

[`WAError.serviceNotDeclared(_:)`](/documentation/WiFiAware/WAError/serviceNotDeclared(_:))

An error that occurs if your app didn’t declare the necessary services.

[`ServiceNotDeclaredDetails`](/documentation/WiFiAware/WAError/ServiceNotDeclaredDetails)

The optional details that describe the app service wasn’t declared.

### Checking for service already in use

[`WAError.serviceAlreadySubscribing(_:)`](/documentation/WiFiAware/WAError/serviceAlreadySubscribing(_:))

An error that occurs if a new subscriber or `Network/NetworkBrowser` can’t be created.

[`ServiceAlreadySubscribingDetails`](/documentation/WiFiAware/WAError/ServiceAlreadySubscribingDetails)

The optional details describing the service that’s subscribing.

[`WAError.serviceAlreadyPublishing(_:)`](/documentation/WiFiAware/WAError/serviceAlreadyPublishing(_:))

An error that occurs if a new publisher or `Network/NetworkListener` can’t be created.

[`ServiceAlreadyPublishingDetails`](/documentation/WiFiAware/WAError/ServiceAlreadyPublishingDetails)

The optional details describing the service that’s publishing.

### Checking if paired devices are present or specified

[`WAError.noPairedDevices(_:)`](/documentation/WiFiAware/WAError/noPairedDevices(_:))

An error that occurs if your app doesn’t have access to any paired devices.

[`NoPairedDevicesDetails`](/documentation/WiFiAware/WAError/NoPairedDevicesDetails)

The optional details describing the lack of paired devices.

### Checking for invalid device

[`WAError.deviceInvalid(_:)`](/documentation/WiFiAware/WAError/deviceInvalid(_:))

An error that occurs if your app specifies a paired device it doesn’t have access to.

[`DeviceInvalidDetails`](/documentation/WiFiAware/WAError/DeviceInvalidDetails)

The optional details describing the device that’s invalid.

### Checking for unavailable device

[`WAError.deviceNoLongerAvailable(_:)`](/documentation/WiFiAware/WAError/deviceNoLongerAvailable(_:))

An error that occurs if a device is no longer available.

[`DeviceNoLongerAvailableDetails`](/documentation/WiFiAware/WAError/DeviceNoLongerAvailableDetails)

The optional details describing the unavailable device.

### Checking for connection

[`WAError.connectionFailed(_:)`](/documentation/WiFiAware/WAError/connectionFailed(_:))

An error that occurs if the service is unable to connect.

[`ConnectionFailedDetails`](/documentation/WiFiAware/WAError/ConnectionFailedDetails)

The optional details describing the failed connection.

### Checking for connection requirements

### Checking for timeouts

[`WAError.connectionIdleTimeout(_:)`](/documentation/WiFiAware/WAError/connectionIdleTimeout(_:))

An error that occurs due to an idle or unused connection.

[`WAError.publisherTimeout(_:)`](/documentation/WiFiAware/WAError/publisherTimeout(_:))

An error that occurs due to publisher timeout.

[`WAError.subscriberTimeout(_:)`](/documentation/WiFiAware/WAError/subscriberTimeout(_:))

An error that occurs due to subscriber timeout.

[`ConnectionIdleTimeoutDetails`](/documentation/WiFiAware/WAError/ConnectionIdleTimeoutDetails)

The optional details describing the missing resources.

[`PublisherTimeoutDetails`](/documentation/WiFiAware/WAError/PublisherTimeoutDetails)

The optional details describing the timed out publisher.

[`SubscriberTimeoutDetails`](/documentation/WiFiAware/WAError/SubscriberTimeoutDetails)

The optional details describing the timed out subscriber.

### Checking for terminated connection

[`WAError.connectionTerminated(_:)`](/documentation/WiFiAware/WAError/connectionTerminated(_:))

An error that occurs if the connection was terminated.

[`ConnectionTerminatedDetails`](/documentation/WiFiAware/WAError/ConnectionTerminatedDetails)

The optional details describing the terminated connection.

### Creating an error

### Encoding

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Error`](/documentation/Swift/Error)

[`LocalizedError`](/documentation/Foundation/LocalizedError)

---

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)