---
title: NEVPNError
framework: networkextension
role: symbol
role_heading: Structure
path: networkextension/nevpnerror-swift.struct
---

# NEVPNError

Information about an error encountered while configuring or using a VPN.

## Declaration

```swift
struct NEVPNError
```

## Topics

### Inspecting error properties

- [NEVPNError.Code](networkextension/nevpnerror-swift.struct/code.md)

### Error codes

- [configurationDisabled](networkextension/nevpnerror-swift.struct/configurationdisabled.md)
- [configurationInvalid](networkextension/nevpnerror-swift.struct/configurationinvalid.md)
- [connectionFailed](networkextension/nevpnerror-swift.struct/connectionfailed.md)
- [configurationStale](networkextension/nevpnerror-swift.struct/configurationstale.md)
- [configurationReadWriteFailed](networkextension/nevpnerror-swift.struct/configurationreadwritefailed.md)
- [configurationUnknown](networkextension/nevpnerror-swift.struct/configurationunknown.md)

### Type Properties

- [errorDomain](networkextension/nevpnerror-swift.struct/errordomain.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
