Name

CancellationException

Synopsis

An exception of this type is thrown to indicate that the result of a computation cannot be retrieved because the computation was canceled. The get( ) method of the Future interface may throw a CancellationException, for example.

java.util.concurrent.CancellationException

Figure 16-74. java.util.concurrent.CancellationException

public class CancellationException extends IllegalStateException {
// Public Constructors
     public CancellationException( );  
     public CancellationException(String message);  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.