InterruptedException

来源:互联网 发布:想自学编程 编辑:程序博客网 时间:2024/06/07 11:45
InterruptedException




关键信息点:


构造方法摘要 
InterruptedException() 
          构造不带详细消息的 InterruptedException。 
InterruptedException(String s) 
          构造带指定详细消息的 InterruptedException。 
  


概述  软件包   类  使用  树  已过时  索引  帮助  
 JavaTM 2 Platform
Standard Ed. 5.0  
 上一个类   下一个类 框架    无框架    所有类  
摘要: 嵌套 | 字段 | 构造方法 | 方法 详细信息: 字段 | 构造方法 | 方法 


--------------------------------------------------------------------------------


java.lang 
类 InterruptedException
java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.InterruptedException
所有已实现的接口: 
java.io.Serializable 


--------------------------------------------------------------------------------


public class InterruptedExceptionextends Exception当线程在很长一段时间内一直处于正在等待、休眠或暂停状态,而另一个线程用 Thread 类中的 iterrupt 方法中断它时,抛出该异常。 






从以下版本开始: 
JDK1.0 
另请参见:
Object.wait(), Object.wait(long), Object.wait(long, int), Thread.sleep(long), Thread.interrupt(), Thread.interrupted(), 序列化表格


--------------------------------------------------------------------------------


构造方法摘要 
InterruptedException() 
          构造不带详细消息的 InterruptedException。 
InterruptedException(String s) 
          构造带指定详细消息的 InterruptedException。 
  方法摘要 
  从类 java.lang.Throwable 继承的方法 
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
  从类 java.lang.Object 继承的方法 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
  


构造方法详细信息 




InterruptedException
public InterruptedException()构造不带详细消息的 InterruptedException。 




--------------------------------------------------------------------------------


InterruptedException
public InterruptedException(String s)构造带指定详细消息的 InterruptedException。 


参数:
s - 详细消息。


--------------------------------------------------------------------------------
概述  软件包   类  使用  树  已过时  索引  帮助  
 JavaTM 2 Platform
Standard Ed. 5.0  
 上一个类   下一个类 框架    无框架    所有类  
摘要: 嵌套 | 字段 | 构造方法 | 方法 详细信息: 字段 | 构造方法 | 方法 


--------------------------------------------------------------------------------
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。 
0 0
原创粉丝点击