Class CancellationException


public class CancellationException extends IllegalStateException
Thrown by Future.get() when the work was cancelled before it ran.
  • Constructor Details

    • CancellationException

      public CancellationException()
      An exception with no message.
    • CancellationException

      public CancellationException(String message)
      An exception with message.
      Parameters:
      message - the detail message