Sets a consumer to be called when the future is failed.

@param consumer The consumer to call.
@return A new future.
516945
public CompletableFuture<T> except(Consumer<Throwable> consumer) {
    return whenComplete((result, error) -> {
      if (error != null) {
        consumer.accept(error);
      }
    });
  }
374924
@NotNull
    public Exceptional<T> ifPresent(@NotNull Consumer<? super T> consumer) {
        if (throwable == null) {
            consumer.accept(value);
        }
        return this;
    }
987102
@Nonnull
	public static <T> LTieFltConsumerBuilder<T> tieFltConsumer(Consumer<LTieFltConsumer<T>> consumer) {
		return new LTieFltConsumerBuilder(consumer);
	}
289065
@NotNull
    public Optional<T> executeIfPresent(@NotNull Consumer<? super T> consumer) {
        ifPresent(consumer);
        return this;
    }
1214637
@Nonnull
	public static <T1, T2> BiConsumerBuilder<T1, T2> biConsumer(Consumer<BiConsumer<T1, T2>> consumer) {
		return new BiConsumerBuilder(consumer);
	}
1222301
public void setConsumers(java.util.Collection<Consumer> consumers) {
        if (consumers == null) {
            this.consumers = null;
            return;
        }

        this.consumers = new com.amazonaws.internal.SdkInternalList<Consumer>(consumers);
    }
441051
public static <T, E extends Exception> Consumer<T> sneaked(SneakyConsumer<T, E> consumer) {
    return t -> {
      @SuppressWarnings("unchecked")
      SneakyConsumer<T, RuntimeException> casedConsumer =
          (SneakyConsumer<T, RuntimeException>) consumer;
      casedConsumer.accept(t);
    };
  }
984090
public Consumer<T> asOriginalDataConsumer() {
        return new Consumer<T>() {
            @Override
            public void accept(T t) throws Exception {
                setData(t);
            }
        };
    }
216914
@Nonnull
	public static <T> LOiToLongFunctionBuilder<T> oiToLongFunction(Consumer<LOiToLongFunction<T>> consumer) {
		return new LOiToLongFunctionBuilder(consumer);
	}
663474
@Nonnull
	public static <R> LSrtFunctionBuilder<R> srtFunction(Consumer<LSrtFunction<R>> consumer) {
		return new LSrtFunctionBuilder(consumer);
	}
1245012
@Nonnull
	public static <T> LTieCharConsumerBuilder<T> tieCharConsumer(Consumer<LTieCharConsumer<T>> consumer) {
		return new LTieCharConsumerBuilder(consumer);
	}
1329979
protected final void registerConsumer( AbstractMessageConsumer consumer )
    {
        if (consumersMap.put(consumer.getId(),consumer) != null)
        	throw new IllegalArgumentException("Consumer "+consumer.getId()+" already exists");
    }
1311432
@Nonnull
	public static <T, R> LOiFunctionBuilder<T, R> oiFunction(Consumer<LOiFunction<T, R>> consumer) {
		return new LOiFunctionBuilder(consumer);
	}
1182126
@Nonnull
	public static <T1, T2> LBiObjFltConsumerBuilder<T1, T2> biObjFltConsumer(Consumer<LBiObjFltConsumer<T1, T2>> consumer) {
		return new LBiObjFltConsumerBuilder(consumer);
	}
1085741
@Nonnull
	public static <T> LOiToSrtFunctionBuilder<T> oiToSrtFunction(Consumer<LOiToSrtFunction<T>> consumer) {
		return new LOiToSrtFunctionBuilder(consumer);
	}
364807
@Nonnull
	public static <T> ObjLongConsumerBuilder<T> objLongConsumer(Consumer<ObjLongConsumer<T>> consumer) {
		return new ObjLongConsumerBuilder(consumer);
	}
87789
public JMProgressiveManager<T, R> registerLastFailureChangeListener(
			Consumer<Pair<T, Exception>> failureChangeListener) {
		return registerListener(lastFailure, failureChangeListener);
	}