public class ExecutionException extends 异常
Throwable.getCause()
方法检查此异常 。
Future
, Serialized Form
Modifier | Constructor and Description |
---|---|
protected |
ExecutionException()
构造一个没有详细消息的
ExecutionException 。
|
protected |
ExecutionException(String message)
构造具有
ExecutionException 详细消息的ExecutionException。
|
|
ExecutionException(String message, Throwable cause)
构造具有
ExecutionException 的详细信息和原因的ExecutionException。
|
|
ExecutionException(Throwable cause)
构造一个
ExecutionException 带指定原因。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected ExecutionException()
protected ExecutionException(String message)
message
- 详细信息
public ExecutionException(String message, Throwable cause)
ExecutionException
的详细消息和原因的ExecutionException。
message
- 详细信息
cause
- 原因(由
Throwable.getCause()
方法保存供以后检索)
public ExecutionException(Throwable cause)
ExecutionException
带指定原因。
详细消息被设置为(cause == null ? null : cause.toString())
(它通常包含的类和详细消息cause
)。
cause
- 原因(保存为
Throwable.getCause()
方法后续检索)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.