Packages This Package Prev Next Index
§1.37 Class InterruptedException
public class java.lang.InterruptedException
extends java.lang.Exception (I-§1.30)
{
// Constructors
public InterruptedException(); §1.37.1
public InterruptedException(String s); §1.37.2
}
Thrown when a thread is waiting (I-§1.12.10-§1.12.12), sleeping (I-§1.19.34), or otherwise paused for a long time and another thread interrupts it using the interrupt method
(I-§1.19.21) in class Thread.
InterruptedException
public InterruptedException()
- Constructs an InterruptedException with no detail message.
InterruptedException
public InterruptedException(String s)
- Constructs an InterruptedException with the specified detail message.
- Parameters:
s
- the detail message
Packages This Package Prev Next Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc.
All rights reserved
Please send any comments or corrections to doug.kramer@sun.com