Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class InterruptedException

Constructors

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.


Constructors


InterruptedException

public InterruptedException() 

Constructs an InterruptedException with no detail message.


InterruptedException

public InterruptedException(String  s) 

Constructs an InterruptedException with the specified detail message.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.