当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)

类 java.lang.InterruptedException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.InterruptedException

public class InterruptedException
extends Exception

当一个线程正在等待、休眠、或暂停了较长时间,而另一个线程用 Thread 类中的 interrupt 方法中断它时抛出该异常。

来自:
JDK1.0
参见:
wait, wait, wait, sleep, interrupt, interrupted

构造子索引

InterruptedException()
不指定详细消息构造一 InterruptedException
InterruptedException(String)
用指定的详细消息构造一 IllegalAccessError

构造子

InterruptedException
 public InterruptedException()
不指定详细消息构造一 InterruptedException

InterruptedException
 public InterruptedException(String s)
用指定的详细消息构造一 IllegalAccessError

参数:
s - 详细消息。

当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)