NetworkExceptionErrorReason Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 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 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 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 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 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 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 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 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 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 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. |