Class CancellationException

All Implemented Interfaces:
Serializable

public class CancellationException extends UncheckedDeephavenException
UncheckedDeephavenException used when an action is cancelled or interrupted.
See Also:
  • Constructor Details

    • CancellationException

      public CancellationException(String message)
    • CancellationException

      public CancellationException(String message, Throwable cause)
  • Method Details

    • isCancellation

      public static boolean isCancellation(@Nullable @Nullable Throwable failure)
      Whether failure, or any throwable in its cause chain, reports that the work was cancelled or its thread was interrupted. Code that recovers from a failure by falling back to other work uses this to let a cancellation escape rather than carry on, since the throwable that reports it is often wrapped by the time it is caught.
      Parameters:
      failure - the throwable to examine, or null
      Returns:
      whether failure or one of its causes is a cancellation or an interruption