Package 

Class ClosedByInterruptException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class ClosedByInterruptException
    extends AsynchronousCloseException
                        

    A {@code ClosedByInterruptException} is thrown when a thread is interrupted in a blocking I/O operation.

    When the thread is interrupted by a call to {@code interrupt()}, it closes the channel, sets the interrupt status of the thread to {@code true} and throws a {@code ClosedByInterruptException}.

    • Constructor Summary

      Constructors 
      Constructor Description
      ClosedByInterruptException() Constructs a {@code ClosedByInterruptException}.
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClosedByInterruptException

        ClosedByInterruptException()
        Constructs a {@code ClosedByInterruptException}.