Package java.net

Class BindException

  • All Implemented Interfaces:
    Serializable

    public class BindException
    extends SocketException
    A BindException is thrown when a process cannot bind a local address/port, either because it is already bound or reserved by the OS.

    Most applications should not catch this exception; it is more robust to catch the superclass SocketException.

    See Also:
    Serialized Form
    • Constructor Detail

      • BindException

        public BindException()
        Constructs a new instance.
      • BindException

        public BindException​(String detailMessage)
        Constructs a new instance with the given detail message.
      • BindException

        public BindException​(String detailMessage,
                             Throwable cause)
        Constructs a new instance with the given detail message and cause.