Package io.micronaut.core.exceptions
Interface BeanExceptionHandler<T,E extends java.lang.Throwable>
-
- Type Parameters:
T
- The bean typeE
- And the exception
- All Superinterfaces:
java.util.function.BiConsumer<T,E>
- 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 BeanExceptionHandler<T,E extends java.lang.Throwable> extends java.util.function.BiConsumer<T,E>
An exception handler capable of receiving a bean that originated the exception and an exception type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(T bean, E throwable)
Handles the exception.void
handle(T bean, E throwable)
Handles the exception.
-