Interface ExceptionUtils.ThrowingConsumer<T>

  • Type Parameters:
    T - type parameter
    All Superinterfaces:
    java.io.Serializable
    Enclosing class:
    ExceptionUtils
    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 static interface ExceptionUtils.ThrowingConsumer<T>
    extends java.io.Serializable
    Consumer throwing exceptions.
    • Method Detail

      • apply

        void apply​(T what)
            throws java.lang.Exception
        Throws:
        java.lang.Exception