NoConnectionPendingException

  • NoConnectionPendingException is an unchecked exception signaling that finishConnect() was called on a SocketChannel before a successful connect() call.

  • It's thrown when attempting to finalize a connection that hasn't been properly initiated.

  • This exception inherits from IllegalStateException and provides a single constructor with no arguments.

  • Refer to the SocketChannel documentation for details on establishing connections properly using connect() and finishConnect().

public class NoConnectionPendingException extends IllegalStateException

Unchecked exception thrown when the finishConnect method of a SocketChannel is invoked without first successfully invoking its connect method.

Public Constructor Summary

NoConnectionPendingException()
Constructs an instance of this class.

Inherited Method Summary

Public Constructors

public NoConnectionPendingException ()

Constructs an instance of this class.