java.lang
クラス InterruptedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.InterruptedException
- すべての実装されたインタフェース:
- Serializable
public class InterruptedException
- extends Exception
あるスレッドが長い間の待ち状態、休止状態、または一時停止の状態であるとき、ほかのスレッドが Thread
クラスの interrupt
メソッドを使ってこの状態に割り込みをかけた場合にスローされます。
- 導入されたバージョン:
- JDK1.0
- 関連項目:
Object.wait()
,
Object.wait(long)
,
Object.wait(long, int)
,
Thread.sleep(long)
,
Thread.interrupt()
,
Thread.interrupted()
,
直列化された形式
クラス java.lang.Throwable から継承されたメソッド |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InterruptedException
public InterruptedException()
- 詳細メッセージを指定しないで
InterruptedException
を構築します。
InterruptedException
public InterruptedException(String s)
- 指定された詳細メッセージを持つ
InterruptedException
を構築します。
- パラメータ:
s
- 詳細メッセージ
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.