InterruptedException

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值