Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.lang.InterruptedException extends java.lang.Exception { // Constructors public InterruptedException(); public InterruptedException(String s); }
Thrown when a thread is waiting (wait), sleeping (sleep), or otherwise paused for a long time and another thread interrupts it using the interrupt method in class Thread.
public InterruptedException()Constructs an InterruptedException with no detail message.
public InterruptedException(String s)Constructs an InterruptedException with the specified detail message.
Parameter Description s the detail message
© 1996 Sun Microsystems, Inc. All rights reserved.