JavaTM 2 Platform
Standard Ed. 5.0

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 2 Platform
Standard Ed. 5.0

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

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