MCPcopy Create free account
hub / github.com/antlr/codebuff / setException

Method setException

output/java_guava/1.4.19/AbstractFuture.java:657–665  ·  view source on GitHub ↗

Sets the failed result of this Future unless this Future has already been cancelled or set (including plain #setFuture set asynchronously). When a call to this method returns, the Future is guaranteed to be plain #isDone done only if the call was accepted

(Throwable throwable)

Source from the content-addressed store, hash-verified

655 */
656
657 @CanIgnoreReturnValue
658 protected boolean setException(Throwable throwable) {
659 Object valueToSet = new Failure(checkNotNull(throwable));
660 if (ATOMIC_HELPER.casValue(this, null, valueToSet)) {
661 complete();
662 return true;
663 }
664 return false;
665 }
666
667 /**
668 * Sets the result of this {@code Future} to match the supplied input {@code Future} once the

Callers 10

runMethod · 0.45
ImmediateFailedFutureMethod · 0.45
runMethod · 0.45
runMethod · 0.45
executeMethod · 0.45
runInterruptiblyMethod · 0.45
executeMethod · 0.45
runInterruptiblyMethod · 0.45
runMethod · 0.45
handleExceptionMethod · 0.45

Calls 3

completeMethod · 0.95
checkNotNullMethod · 0.45
casValueMethod · 0.45

Tested by

no test coverage detected