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

Method exception

future-java/src/main/java/io/trane/future/Future.java:179–179  ·  view source on GitHub ↗

Creates a failed future. @param ex the failure. @param the type of the failed future. @return the failed future.

(final Throwable ex)

Source from the content-addressed store, hash-verified

177 * @return the failed future.
178 */
179 public static <T> Future<T> exception(final Throwable ex) {
180 return new ExceptionFuture<>(ex);
181 }
182

Callers 15

isDefinedExceptionMethod · 0.95
proxyToFailureMethod · 0.95
withinFailureMethod · 0.95
joinMethod · 0.95
exceptionMethod · 0.95
mapMethod · 0.95
flatMapMethod · 0.95
transformMethod · 0.95
transformExceptionMethod · 0.95
transformWithMethod · 0.95

Calls

no outgoing calls

Tested by 15

isDefinedExceptionMethod · 0.76
proxyToFailureMethod · 0.76
withinFailureMethod · 0.76
joinMethod · 0.76
exceptionMethod · 0.76
mapMethod · 0.76
flatMapMethod · 0.76
transformMethod · 0.76
transformExceptionMethod · 0.76
transformWithMethod · 0.76