|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.util.concurrent.ExecutionException
public class ExecutionException
当试图获取已通过抛出异常而中止的任务的结果时,抛出此异常。可以使用 Throwable.getCause() 方法来检查此异常。
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 |
| 构造方法详细信息 |
|---|
protected ExecutionException()
initCause 对其进行初始化。
protected ExecutionException(String message)
initCause 对其进行初始化。
message - 详细消息
public ExecutionException(String message,
Throwable cause)
message - 详细消息cause - 原因(保存此原因,以便以后通过 Throwable.getCause() 方法获取它)public ExecutionException(Throwable cause)
(cause == null ? null :cause.toString())(它通常包含类和 cause 的详细消息)。
cause - 原因(保存此原因,以便以后通过 Throwable.getCause() 方法获取它)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。