---
title: WINetworkSharingError
framework: wifiinfrastructure
role: symbol
role_heading: Enumeration
path: wifiinfrastructure/winetworksharingerror
---

# WINetworkSharingError

Error codes for Wi-Fi network-sharing functionality.

## Declaration

```swift
enum WINetworkSharingError
```

## Overview

Overview The Wi-Fi network-sharing API throws WINetworkSharingError instances when there are issues with accessories, network availability, permissions, or system state.

## Topics

### Checking for general errors

- [WINetworkSharingError.error](wifiinfrastructure/winetworksharingerror/error.md)

### Checking for timeouts

- [WINetworkSharingError.timeout](wifiinfrastructure/winetworksharingerror/timeout.md)

### Checking for app issues

- [WINetworkSharingError.appNotPermitted](wifiinfrastructure/winetworksharingerror/appnotpermitted.md)
- [WINetworkSharingError.appNotInForeground](wifiinfrastructure/winetworksharingerror/appnotinforeground.md)

### Checking for unsupported host capabilities

- [WINetworkSharingError.wifiNetworkSharingUnsupported](wifiinfrastructure/winetworksharingerror/wifinetworksharingunsupported.md)

### Checking for communication failures

- [WINetworkSharingError.communicationFailure](wifiinfrastructure/winetworksharingerror/communicationfailure.md)

### Checking for no available networks

- [WINetworkSharingError.noAvailableNetworks](wifiinfrastructure/winetworksharingerror/noavailablenetworks.md)

### Checking for excessive requests

- [WINetworkSharingError.tooManyRequests](wifiinfrastructure/winetworksharingerror/toomanyrequests.md)

### Checking for accessory issues

- [WINetworkSharingError.accessoryNotConfigured](wifiinfrastructure/winetworksharingerror/accessorynotconfigured.md)
- [WINetworkSharingError.accessoryNotAuthorized](wifiinfrastructure/winetworksharingerror/accessorynotauthorized.md)
- [WINetworkSharingError.accessoryNotConnected](wifiinfrastructure/winetworksharingerror/accessorynotconnected.md)
- [WINetworkSharingError.noAccessoryScanResponse](wifiinfrastructure/winetworksharingerror/noaccessoryscanresponse.md)
- [WINetworkSharingError.accessoryTransportNotSecured](wifiinfrastructure/winetworksharingerror/accessorytransportnotsecured.md)
- [WINetworkSharingError.noMatchingAccessoryScanRequest](wifiinfrastructure/winetworksharingerror/nomatchingaccessoryscanrequest.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [LocalizedError](foundation/localizederror.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
