Class CancellationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
java.util.concurrent.CancellationException
Thrown by
Future.get() when the work was cancelled before it ran.-
Constructor Summary
ConstructorsConstructorDescriptionAn exception with no message.CancellationException(String message) An exception withmessage. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancellationException
public CancellationException()An exception with no message. -
CancellationException
An exception withmessage.- Parameters:
message- the detail message
-