/** * Returns a Nono that signals a Throwable generated by the * callable for each individual subscriber. * @param errorSupplier the Throwable error supplier, not null * @return the new Nono instance */ public static Nono error(Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return onAssembly(new NonoErrorSupplier(errorSupplier)); }
/** * Returns a Nono that signals a Throwable generated by the * callable for each individual subscriber. * @param errorSupplier the Throwable error supplier, not null * @return the new Nono instance */ public static Nono error(Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return onAssembly(new NonoErrorSupplier(errorSupplier)); }