Most visited

Recently visited

Added in API level 1

UnknownHostException

public class UnknownHostException
extends IOException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.net.UnknownHostException


抛出以表明无法确定主机的IP地址。

Summary

Public constructors

UnknownHostException(String host)

用指定的详细信息构造一个新的 UnknownHostException

UnknownHostException()

构造一个没有详细信息的新的 UnknownHostException

Inherited methods

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

Public constructors

UnknownHostException

Added in API level 1
UnknownHostException (String host)

用指定的详细信息构造一个新的 UnknownHostException

Parameters
host String: the detail message.

UnknownHostException

Added in API level 1
UnknownHostException ()

构造一个新的 UnknownHostException ,没有详细信息。

Hooray!