Dil

NetworkExceptionErrorReason Enum

Definition

public enum NetworkExceptionErrorReason
type NetworkExceptionErrorReason = 
Inheritance
NetworkExceptionErrorReason

Fields

Name Value Description
HostnameNotResolved 1

Error code indicating the host being sent the request could not be resolved to an IP address.

Android reference for android.net.http.NetworkException.ERROR_HOSTNAME_NOT_RESOLVED.

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.

InternetDisconnected 2

Error code indicating the device was not connected to any network.

Android reference for android.net.http.NetworkException.ERROR_INTERNET_DISCONNECTED.

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.

NetworkChanged 3

Error code indicating that as the request was processed the network configuration changed. When getErrorCode() returns this code, this exception may be cast to QuicException for more information if QUIC protocol is used.

Android reference for android.net.http.NetworkException.ERROR_NETWORK_CHANGED.

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.

TimedOut 4

Error code indicating a timeout expired. Timeouts expiring while attempting to connect will be reported as the more specific ERROR_CONNECTION_TIMED_OUT.

Android reference for android.net.http.NetworkException.ERROR_TIMED_OUT.

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.

ConnectionClosed 5

Error code indicating the connection was closed unexpectedly.

Android reference for android.net.http.NetworkException.ERROR_CONNECTION_CLOSED.

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.

ConnectionTimedOut 6

Error code indicating the connection attempt timed out.

Android reference for android.net.http.NetworkException.ERROR_CONNECTION_TIMED_OUT.

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.

ConnectionRefused 7

Error code indicating the connection attempt was refused.

Android reference for android.net.http.NetworkException.ERROR_CONNECTION_REFUSED.

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.

ConnectionReset 8

Error code indicating the connection was unexpectedly reset.

Android reference for android.net.http.NetworkException.ERROR_CONNECTION_RESET.

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.

AddressUnreachable 9

Error code indicating the IP address being contacted is unreachable, meaning there is no route to the specified host or network.

Android reference for android.net.http.NetworkException.ERROR_ADDRESS_UNREACHABLE.

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.

QuicProtocolFailed 10

Error code indicating an error related to the QUIC protocol. When getErrorCode() returns this code, this exception can be cast to QuicException for more information.

Android reference for android.net.http.NetworkException.ERROR_QUIC_PROTOCOL_FAILED.

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.

Other 11

Error code indicating another type of error was encountered.

Android reference for android.net.http.NetworkException.ERROR_OTHER.

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