Package io.deephaven.engine.exceptions
Class CancellationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.deephaven.UncheckedDeephavenException
io.deephaven.engine.exceptions.CancellationException
- All Implemented Interfaces:
Serializable
UncheckedDeephavenException used when an action is cancelled or interrupted.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCancellationException(String message) CancellationException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCancellation(@Nullable Throwable failure) Whetherfailure, or any throwable in its cause chain, reports that the work was cancelled or its thread was interrupted.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancellationException
-
CancellationException
-
-
Method Details
-
isCancellation
Whetherfailure, 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, ornull- Returns:
- whether
failureor one of its causes is a cancellation or an interruption
-