public class RuntimeInterruptedException
extends java.lang.RuntimeException
RuntimeException
that is thrown when a Thread is interrupted.
This exception is useful if a Thread needs to be interrupted, but the InterruptedException
can't be thrown
because it is checked.
When the RuntimeInterruptedException
is created, it will automatically set the interrupt status on the calling
thread.
Constructor and Description |
---|
RuntimeInterruptedException(java.lang.InterruptedException cause) |
RuntimeInterruptedException(java.lang.String msg,
java.lang.InterruptedException cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.InterruptedException |
getCause() |