加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090302010319/http://developer.android.com:80/reference/java/net/ConnectException.html
public class

ConnectException

extends SocketException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.net.SocketException
           ↳ java.net.ConnectException
Known Direct Subclasses

Class Overview

This ConnectException is thrown when a connection cannot be established to a remote host/port, because for instance a server was not listening.

Summary

Public Constructors
ConnectException()
Constructs a new instance of this class with its walkback filled in.
ConnectException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ConnectException ()

Constructs a new instance of this class with its walkback filled in.

public ConnectException (String detailMessage)

Constructs a new instance of this class with its walkback and message filled in.

Parameters
detailMessage String The detail message for the exception.