Interface ExceptionHandler<E extends Exception>

All Superinterfaces:
Consumer<E>
All Known Implementing Classes:
RuntimeExceptionThrower
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 ExceptionHandler<E extends Exception> extends Consumer<E>
Since:
1.6
Author:
Sina Madani
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(E ex)
     
    void
     

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • accept

      default void accept(E ex)
      Specified by:
      accept in interface Consumer<E extends Exception>
    • handleException

      void handleException(E ex)