public class InterruptedException extends Exception
if (Thread.interrupted()) // Clears interrupted status! throw new InterruptedException();
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, toString
public InterruptedException()
InterruptedException
with no detail message.public InterruptedException(String s)
InterruptedException
with the specified detail message.s
- the detail message.