MCPcopy Create free account
hub / github.com/traneio/future / setException

Method setException

future-java/src/main/java/io/trane/future/Promise.java:354–356  ·  view source on GitHub ↗

Completes this promise with a failure ex. @param ex the failure.

(final Throwable ex)

Source from the content-addressed store, hash-verified

352 * @param ex the failure.
353 */
354 public final void setException(final Throwable ex) {
355 become(new ExceptionFuture<>(ex));
356 }
357
358 /**
359 * Raises an interrupt.

Callers 15

setExceptionSuccessMethod · 0.80
setExceptionFailureMethod · 0.80
voidedFailureMethod · 0.80
proxyToFailureMethod · 0.80
withinPromiseFailureMethod · 0.80
onFailureMethod · 0.80
respondFailureMethod · 0.80
rescueMethod · 0.80
collectMixedExceptionMethod · 0.80
joinPromisesExceptionMethod · 0.80

Calls 1

becomeMethod · 0.95

Tested by 15

setExceptionSuccessMethod · 0.64
setExceptionFailureMethod · 0.64
voidedFailureMethod · 0.64
proxyToFailureMethod · 0.64
withinPromiseFailureMethod · 0.64
onFailureMethod · 0.64
respondFailureMethod · 0.64
rescueMethod · 0.64
collectMixedExceptionMethod · 0.64
joinPromisesExceptionMethod · 0.64