public class InterruptedException extends Exception
if (Thread.interrupted()) // Clears interrupted status!
throw new InterruptedException();
Object.wait() ,
Object.wait(long) ,
Object.wait(long, int) ,
Thread.sleep(long) ,
Thread.interrupt() ,
Thread.interrupted() ,
Serialized Form
| Constructor and Description |
|---|
InterruptedException()
Constructs an
InterruptedException with no detail message.
|
InterruptedException(String
Constructs an
InterruptedException with the specified detail message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InterruptedException()
InterruptedException with no detail message.
public InterruptedException(Strings)
InterruptedException with the specified detail message.
s - the detail message.