Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 397
نمايش فراداده

UnknownHostExceptionjava.net

Java 1.0serializable checked

Signals that the name of a specified host could not be resolved.

Figure 12-23. java.net.UnknownHostException

public class

UnknownHostException extends java.io.IOException { // Public Constructors public

UnknownHostException ( ); public

UnknownHostException (String

host ); }

Thrown By

Inet6Address.getByAddress( ), InetAddress.{getAllByName( ), getByAddress( ), getByName( ), getLocalHost( )}, Socket.Socket( ), javax.net.SocketFactory.createSocket( ), javax.net.ssl.SSLSocket.SSLSocket( )