public static <T>FutureW<T> ofError(final Throwable error){
  final CompletableFuture<T> cf=new CompletableFuture<>();
  cf.completeExceptionally(error);
  return FutureW.<T>of(cf);
}

public static < T > FutureW < T > ofError ( final Throwable error ) { final CompletableFuture < T > cf = new CompletableFuture < > ( ) ; cf . completeExceptionally ( error ) ; return FutureW . < T > of ( cf ) ; }
construct a completed - with - error futurew from the given exception
