Exception | Description |
---|---|
BindException |
Signals that an error occurred while attempting to bind a
socket to a local address and port.
|
ConnectException |
Signals that an error occurred while attempting to connect a
socket to a remote address and port.
|
NoRouteToHostException |
Signals that an error occurred while attempting to connect a
socket to a remote address and port.
|
PortUnreachableException |
Signals that an ICMP Port Unreachable message has been
received on a connected datagram.
|
SocketException |
Thrown to indicate that there is an error creating or accessing a Socket.
|
UnknownHostException |
Thrown to indicate that the IP address of a host could not be determined.
|
The java.net package is a subset that has:
A High Level API, which deals with the following abstractions:
URIs, which represent Universal Resource Identifiers.
a set of exceptions, which indicate details on problems with socket-based network connections.
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.