---
title: NEVPNError.Code
framework: networkextension
role: symbol
role_heading: Enumeration
path: networkextension/nevpnerror-swift.struct/code
---

# NEVPNError.Code

Codes that indicate the source of an error.

## Declaration

```swift
enum Code
```

## Topics

### Error codes

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

### Initializers

- [init(rawValue:)](networkextension/nevpnerror-swift.struct/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
