Structure

NEVPNError

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

Declaration

struct NEVPNError

Topics

Inspecting Error Properties

var errorCode: Int

The code that identifies the error.

var errorUserInfo: [String : Any]

A dictionary containing details about the error.

var localizedDescription: String

A localized description of the error.

static var errorDomain: String

The VPN error domain.

Error Codes

static var configurationDisabled: NEVPNError.Code

An error code that indicates the VPN configuration associated with the VPN manager isn’t enabled.

static var configurationInvalid: NEVPNError.Code

An error code that indicates the VPN configuration associated with the VPN manager object is invalid.

static var connectionFailed: NEVPNError.Code

An error code that indicates the connection to the VPN server failed.

static var configurationStale: NEVPNError.Code

An error code that indicates another process modfied the VPN configuration since the last time the app loaded the configuration.

static var configurationReadWriteFailed: NEVPNError.Code

An error code that indicates an error occurred while reading or writing the Network Extension preferences.

static var configurationUnknown: NEVPNError.Code

An error code that indicates that unspecified error occurred.

Comparing Errors

static func != (NEVPNError, NEVPNError) -> Bool

Returns a Boolean value indicating whether two VPN errors are unequal.