java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
java.util.concurrent.CancellationException
public class CancellationException
如果某项值生成任务(如 FutureTask)的结果因为任务被取消而无法获取到,则抛出该异常。
| 构造方法摘要 | |
|---|---|
CancellationException() 构造不带详细消息的 CancellationException。 |
|
CancellationException(String message) 构造带指定详细消息的 CancellationException。 |
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CancellationException()
public CancellationException(String message)
message - 详细消息