CancelledKeyException

  • CancelledKeyException is an unchecked exception signaling an attempt to use an invalid selection key.

  • It's thrown when a selection key is no longer valid, indicating cancellation.

  • This exception inherits methods from IllegalStateException, Throwable, and Object for handling and debugging.

  • A public constructor, CancelledKeyException(), is available to create instances of this exception.

public class CancelledKeyException extends IllegalStateException

Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.

Public Constructor Summary

CancelledKeyException()
Constructs an instance of this class.

Inherited Method Summary

Public Constructors

public CancelledKeyException ()

Constructs an instance of this class.