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 s)
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(String s)
InterruptedException with the
specified detail message.s - the detail message.Generated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.