Interface ExceptionHandler<E extends java.lang.Exception>

  • All Superinterfaces:
    java.util.function.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 java.lang.Exception>
    extends java.util.function.Consumer<E>
    Since:
    1.6
    Author:
    Sina Madani
    • Method Detail

      • accept

        default void accept​(E ex)
        Specified by:
        accept in interface java.util.function.Consumer<E extends java.lang.Exception>
      • handleException

        void handleException​(E ex)