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.

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

      • accept

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