Language

VpnErrorCode Enum

Definition

Defines values that correspond to the Android VpnManager.ERROR_CODE_NETWORK_* constants.

public enum VpnErrorCode
type VpnErrorCode = 
Inheritance
VpnErrorCode

Fields

Name Value Description
UnknownHost 0

An ExtraErrorCode for CategoryEventNetworkError to indicate that the network host isn't known. This happens when domain name resolution could not resolve an IP address for the specified host.

Android reference for android.net.VpnManager.ERROR_CODE_NETWORK_UNKNOWN_HOST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NetworkProtocolTimeout 1

An ExtraErrorCode for CategoryEventNetworkError indicating a timeout. For Ikev2 VPNs, this happens typically after a retransmission failure.

Android reference for android.net.VpnManager.ERROR_CODE_NETWORK_PROTOCOL_TIMEOUT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NetworkLost 2

An ExtraErrorCode for CategoryEventNetworkError indicating that network connectivity was lost. The most common reason for this error is that the underlying network was disconnected, see IkeNetworkLostException.

Android reference for android.net.VpnManager.ERROR_CODE_NETWORK_LOST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NetworkIO 3

An ExtraErrorCode for CategoryEventNetworkError indicating an input/output error. This code happens when reading or writing to sockets on the underlying networks was terminated by an I/O error.

Android reference for android.net.VpnManager.ERROR_CODE_NETWORK_IO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to