java.lang
Class InterruptedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.InterruptedException

public class InterruptedException
extends Exception

Thrown when a thread interrupts another thread which was previously sleeping, waiting, or paused in some other way. See the interrupt method of class Thread.

See Also:
Object.wait(), Object.wait(long), Object.wait(long, int), Thread.sleep(long), Thread#interrupt(), Thread#interrupted()

Constructor Summary
InterruptedException()
          Create an exception without a message.
InterruptedException(String s)
          Create an exception with a message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterruptedException

public InterruptedException()
Create an exception without a message.


InterruptedException

public InterruptedException(String s)
Create an exception with a message.

Parameters:
s - the message