Most visited

Recently visited

Added in API level 1

ExecutionException

public class ExecutionException
extends 异常

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.util.concurrent.ExecutionException


尝试检索由抛出异常中止的任务的结果时抛出异常。 这个异常可以使用getCause()方法进行检查。

也可以看看:

Summary

Public constructors

ExecutionException(String message, Throwable cause)

用指定的详细信息和原因构造一个 ExecutionException

ExecutionException(Throwable cause)

用指定的原因构造一个 ExecutionException

Protected constructors

ExecutionException()

构造一个没有详细信息的 ExecutionException

ExecutionException(String message)

用指定的详细信息构造一个 ExecutionException

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ExecutionException

Added in API level 1
ExecutionException (String message, 
                Throwable cause)

用指定的详细信息和原因构造一个 ExecutionException

Parameters
message String: the detail message
cause Throwable: the cause (which is saved for later retrieval by the getCause() method)

ExecutionException

Added in API level 1
ExecutionException (Throwable cause)

用指定的原因构造一个ExecutionException 详细消息被设定为(cause == null ? null : cause.toString()) (它通常包含的类和详细消息cause )。

Parameters
cause Throwable: the cause (which is saved for later retrieval by the getCause() method)

Protected constructors

ExecutionException

Added in API level 1
ExecutionException ()

构造一个没有详细信息的ExecutionException 原因未初始化,并可能随后通过致电initCause进行初始化。

ExecutionException

Added in API level 1
ExecutionException (String message)

用指定的详细信息构造一个ExecutionException 原因未初始化,并可能随后通过致电initCause进行初始化。

Parameters
message String: the detail message

Hooray!