Top Description Fields Constructors
java.net

public Class BindException

extends SocketException
Class Inheritance

Signals that an error occurred while attempting to bind a socket to a local address and port. Typically, the port is in use, or the requested local address could not be assigned.
Since
1.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
BindException(String
the detail message
msg
)

Constructs a new BindException with the specified detail message as to why the bind error occurred.

public
BindException()

Construct a new BindException with no detailed message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.net.SocketException.serialVersionUID.

Annotations
@Serial

Constructor Detail

BindExceptionback to summary
public BindException(String msg)

Constructs a new BindException with the specified detail message as to why the bind error occurred. A detail message is a String that gives a specific description of this error.

Parameters
msg:String

the detail message

BindExceptionback to summary
public BindException()

Construct a new BindException with no detailed message.