- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- java.util.concurrent.CancellationException
-
- All Implemented Interfaces:
-
Serializable
public class CancellationException extends IllegalStateException
异常指示由于任务被取消,无法检索值生成任务的结果,如FutureTask
。- 从以下版本开始:
- 1.5
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 CancellationException()
构造一个没有详细消息的CancellationException
。CancellationException(String message)
构造具有指定详细消息的CancellationException
。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
CancellationException
public CancellationException()
构造一个没有详细信息的CancellationException
。
-
CancellationException
public CancellationException(String message)
构造具有指定详细消息的CancellationException
。- 参数
-
message
- 详细信息
-
-