Skip to content

Most visited

Recently visited

navigation

ConnectTimeoutException

public class ConnectTimeoutException
extends InterruptedIOException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.io.InterruptedIOException
           ↳ org.apache.http.conn.ConnectTimeoutException


This class was deprecated in API level 22.
Please use openConnection() instead. Please visit this webpage for further details.

A timeout while connecting to an HTTP server or waiting for an available connection from an HttpConnectionManager.

Summary

Inherited fields

From class java.io.InterruptedIOException

Public constructors

ConnectTimeoutException()

Creates a ConnectTimeoutException with a null detail message.

ConnectTimeoutException(String message)

Creates a ConnectTimeoutException with the specified detail message.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ConnectTimeoutException

Added in API level 1
ConnectTimeoutException ()

Creates a ConnectTimeoutException with a null detail message.

ConnectTimeoutException

Added in API level 1
ConnectTimeoutException (String message)

Creates a ConnectTimeoutException with the specified detail message.

Parameters
message String: The exception detail message
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.