Name
PortUnreachableException
Synopsis
An
exception of this type may be thrown by a send(
)
or
receive( )
call on a
DatagramSocket
if the connect(
)
method of that socket has been called, and if the
connection attempt resulted in an ICMP “port
unreachable” message.
Figure 12-15. java.net.PortUnreachableException
public class PortUnreachableException extends SocketException { // Public Constructors public PortUnreachableException( ); public PortUnreachableException(String msg); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.