Most visited

Recently visited

Added in API level 24

CompletionException

public class CompletionException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.util.concurrent.CompletionException


在完成结果或任务过程中遇到错误或其他异常时抛出异常。

Summary

Public constructors

CompletionException(String message, Throwable cause)

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

CompletionException(Throwable cause)

用指定的原因构造一个 CompletionException 。

Protected constructors

CompletionException()

构造一个没有详细信息的 CompletionException 。

CompletionException(String message)

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

Inherited methods

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

Public constructors

CompletionException

Added in API level 24
CompletionException (String message, 
                Throwable cause)

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

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

CompletionException

Added in API level 24
CompletionException (Throwable cause)

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

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

Protected constructors

CompletionException

Added in API level 24
CompletionException ()

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

CompletionException

Added in API level 24
CompletionException (String message)

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

Parameters
message String: the detail message

Hooray!