JavaTM Platform
Standard Ed. 6

java.util.concurrent
クラス ExecutionException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 java.util.concurrent.ExecutionException
すべての実装されたインタフェース:
Serializable

public class ExecutionException
extends Exception

例外をスローすることによって中断したタスクの結果を取得しようとしたときにスローされる例外です。この例外は、Throwable.getCause() メソッドを使用して検査できます。

導入されたバージョン:
1.5
関連項目:
Future, 直列化された形式

コンストラクタの概要
protected ExecutionException()
          詳細メッセージを持たない ExecutionException を構築します。
protected ExecutionException(String message)
          指定された詳細メッセージを持つ ExecutionException を構築します。
  ExecutionException(String message, Throwable cause)
          指定された詳細メッセージと原因を持つ ExecutionException を構築します。
  ExecutionException(Throwable cause)
          指定された原因を使用して ExecutionException を生成します。
 
メソッドの概要
 
クラス 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
 

コンストラクタの詳細

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() メソッドで取得するために保存される)

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。