- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.util.concurrent.ExecutionException
-
- すべての実装されたインタフェース:
Serializable
public class ExecutionException extends Exception
例外をスローすることによって中断したタスクの結果を取得しようとしたときにスローされる例外です。 この例外は、Throwable.getCause()メソッドを使用して検査できます。
-
-
コンストラクタのサマリー
コンストラクタ 修飾子 コンストラクタ 説明 protectedExecutionException()詳細メッセージを持たないExecutionExceptionを構築します。protectedExecutionException(String message)指定された詳細メッセージを持つExecutionExceptionを構築します。ExecutionException(String message, Throwable cause)指定された詳細メッセージと原因を持つExecutionExceptionを構築します。ExecutionException(Throwable cause)指定された原因を使用してExecutionExceptionを生成します。
-
メソッドのサマリー
-
クラス java.lang.Throwableで宣言されたメソッド
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
コンストラクタの詳細
-
ExecutionException
protected ExecutionException()
詳細メッセージを持たないExecutionExceptionを構築します。 原因は初期化されません。initCauseを呼び出すことによって、後でこれを初期化できます。
-
ExecutionException
protected ExecutionException(String message)
指定された詳細メッセージを持つExecutionExceptionを構築します。 原因は初期化されません。initCauseを呼び出すことによって、後でこれを初期化できます。- パラメータ:
message- 詳細メッセージ
-
ExecutionException
public ExecutionException(String message, Throwable cause)
指定された詳細メッセージと原因を持つExecutionExceptionを構築します。- パラメータ:
message- 詳細メッセージcause- 原因(あとでThrowable.getCause()メソッドで取得できるように保存される)
-
ExecutionException
public ExecutionException(Throwable cause)
指定された原因を使用してExecutionExceptionを生成します。 詳細メッセージは(cause == null ? null : cause.toString())に設定されます(通常、causeのクラスと詳細メッセージを含みます)。- パラメータ:
cause- 原因(あとでThrowable.getCause()メソッドで取得できるように保存される)
-
-