Interface ConsumerWithException<T>

  • Type Parameters:
    T - the type of the argument
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Deprecated
    @FunctionalInterface
    public interface ConsumerWithException<T>
    Deprecated.
    Consumer interface that allows exceptions.
    • Method Detail

      • accept

        void accept​(T t)
             throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • orElseThrow

        default java.util.function.Consumer<T> orElseThrow()
        Deprecated.
      • ignoreException

        default java.util.function.Consumer<T> ignoreException()
        Deprecated.
      • asConsumer

        static <T> java.util.function.Consumer<T> asConsumer​(ConsumerWithException<T> unchecked)
        Deprecated.
      • asConsumerIgnoreException

        static <T> java.util.function.Consumer<T> asConsumerIgnoreException​(ConsumerWithException<T> unchecked)
        Deprecated.