Interface ThrowingConsumer<T,K extends Throwable>


public interface ThrowingConsumer<T,K extends Throwable>
Functional interface that performs an operation that might throw an exception.

Follows naming scheme of Java 8 functional interfaces.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T consume)
     
  • Method Details

    • accept

      void accept(T consume) throws K
      Throws:
      K extends Throwable