AlreadyBoundException

  • AlreadyBoundException is an unchecked exception indicating an attempt to bind an already bound network-oriented channel.

  • It's a subclass of IllegalStateException and provides a public constructor with no arguments.

  • This exception inherits methods from Throwable for stack trace and error handling, and from Object for basic object operations.

  • Developers should handle this exception to gracefully address scenarios where a socket or channel is already bound to a specific address and port.

public class AlreadyBoundException extends IllegalStateException

Unchecked exception thrown when an attempt is made to bind the socket a network oriented channel that is already bound.

Public Constructor Summary

AlreadyBoundException()
Constructs an instance of this class.

Inherited Method Summary

Public Constructors

public AlreadyBoundException ()

Constructs an instance of this class.