|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.InterruptedException
public class InterruptedException
あるスレッドが待ち状態、休止状態、または占有されているとき、アクティビティーの前かその間のいずれかにそのスレッドで割り込みが発生した場合にスローされます。ただし、場合によっては、メソッドで、現在のスレッドで割り込みが発生したことがあるかどうかをテストすることもできます。これを実行する場合は、すぐにこの例外をスローします。次のコードを使用してこの効果を実現できます。
if (Thread.interrupted()) // Clears interrupted status!
throw new InterruptedException();
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 |
| コンストラクタの詳細 |
|---|
public InterruptedException()
InterruptedException を構築します。
public InterruptedException(String s)
InterruptedException を構築します。
s - 詳細メッセージ
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。