日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSInterruptedException

InterruptedException

網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、小程序制作、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了溫江免費(fèi)建站歡迎大家使用!

java.lang.Object

|---java.lang.Throwable

|---|---java.lang.Exception

|---|---|---java.lang.InterruptedException

public class InterruptedException
extends Exception

當(dāng)線程等待、休眠或以其他方式被占用,并且線程在活動之前或期間被中斷時(shí)拋出。 有時(shí)某個(gè)方法可能希望測試當(dāng)前線程是否已被中斷,如果是,則立即拋出此異常。 下面的代碼可以用來實(shí)現(xiàn)這個(gè)效果:

  if (Thread.interrupted())  // Clears interrupted status!
      throw new InterruptedException();

構(gòu)造函數(shù)摘要

構(gòu)造函數(shù) 描述
InterruptedException() 構(gòu)造一個(gè)沒有詳細(xì)消息的 InterruptedException。
InterruptedException(String s) 構(gòu)造帶有指定詳細(xì)消息的 InterruptedException。

方法總結(jié)

從類 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
從類 java.lang.Throwable 繼承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

構(gòu)造函數(shù)詳細(xì)信息

InterruptedException

public InterruptedException()

構(gòu)造一個(gè)沒有詳細(xì)消息的 InterruptedException。

InterruptedException

public InterruptedException(String s)

構(gòu)造帶有指定詳細(xì)消息的 InterruptedException。

參數(shù):

參數(shù)名稱 參數(shù)描述
s 詳細(xì)信息。

當(dāng)前題目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSInterruptedException
轉(zhuǎn)載源于:http://m.5511xx.com/article/cdsiseh.html