Most visited

Recently visited

Added in API level 1

CancellationException

public class CancellationException
extends IllegalStateException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalStateException
           ↳ java.util.concurrent.CancellationException


指示由于任务被取消而无法检索值生成任务(如 FutureTask的结果的异常。

Summary

Public constructors

CancellationException()

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

CancellationException(String message)

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

Inherited methods

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

Public constructors

CancellationException

Added in API level 1
CancellationException ()

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

CancellationException

Added in API level 1
CancellationException (String message)

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

Parameters
message String: the detail message

Hooray!