Contents:
The package java.net contains classes and interfaces that provide a powerful infrastructure for networking in Java. These include:
Figure 15.1 shows the class hierarchy for the java.net package.
java.net.BindException
java.net.SocketException
None
None
New as of JDK 1.1
A BindException is thrown when a socket cannot be bound to a local address and port, which can occur if the port is already in use or the address is unavailable.
public class java.net.BindException extends java.net.SocketException {
// Constructors
public BindException();
public BindException(String msg);
}
This constructor creates a BindException with no associated detail message.
The detail message.
This constructor creates a BindException with the specified detail message.
|
Method |
Inherited From |
Method |
Inherited From |
|---|---|---|---|
|
clone() |
Object |
equals(Object) |
Object |
|
fillInStackTrace() |
Throwable |
finalize() |
Object |
|
getClass() |
Object |
getLocalizedMessage() |
Throwable |
|
getMessage() |
Throwable |
hashCode() |
Object |
|
notify() |
Object |
notifyAll() |
Object |
|
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
|
printStackTrace(PrintWriter) |
Throwable |
toString() |
Throwable |
|
wait() |
Object |
wait(long) |
Object |
|
wait(long, int) |
Object |
Exception, IOException, RuntimeException, SocketException