Language

VpnErrorCode Enum

Definition

Defines values used by the Android VpnErrorCode API.

public enum VpnErrorCode
type VpnErrorCode = 
Inheritance
VpnErrorCode

Fields

Name Value Description
UnknownHost 0

An EXTRA_ERROR_CODE for CATEGORY_EVENT_NETWORK_ERROR 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 EXTRA_ERROR_CODE for CATEGORY_EVENT_NETWORK_ERROR 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 EXTRA_ERROR_CODE for CATEGORY_EVENT_NETWORK_ERROR 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 EXTRA_ERROR_CODE for CATEGORY_EVENT_NETWORK_ERROR 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