<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:SC19NEAppProxyFlowErrorLeV"
  },
  "title" : "NEAppProxyFlowError"
}
-->

# NEAppProxyFlowError

An error that the app proxy flow encounters.

```
struct NEAppProxyFlowError
```

## Topics

### Creating error instances

### Accessing error properties

[`Code`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/Code)

Error codes that the app proxy flow API declares.

### Error codes

[`notConnected`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/notConnected)

The flow is not fully opened.

[`peerReset`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/peerReset)

The remote peer closed the flow.

[`hostUnreachable`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/hostUnreachable)

An attempt to reach the remote endpoint of the flow failed.

[`invalidArgument`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/invalidArgument)

A proxy flow method received an invalid argument.

[`aborted`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/aborted)

The flow was aborted.

[`refused`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/refused)

Connecting the flow to its remote endpoint failed.

[`timedOut`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/timedOut)

The flow timed out.

[`internal`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/internal)

An internal error occurred while handling the flow.

[`datagramTooLarge`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/datagramTooLarge)

A caller attempted to write a datagram that was larger than the socket’s receive window.

[`readAlreadyPending`](/documentation/NetworkExtension/NEAppProxyFlowError-swift.struct/readAlreadyPending)

A read operation on the flow is already pending.

### Error domain

### Hashing

### Comparing errors

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)