Package io.micronaut.core.exceptions
Interface BeanExceptionHandler<T,E extends Throwable>
- Type Parameters:
T
- The bean typeE
- And the exception
- All Superinterfaces:
BiConsumer<T,
E>
- All Known Subinterfaces:
TaskExceptionHandler<T,
E>
- All Known Implementing Classes:
DefaultTaskExceptionHandler
- 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 Throwable>
extends BiConsumer<T,E>
An exception handler capable of receiving a bean that originated the exception and an exception type.
-
Method Summary
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
handle
Handles the exception.- Parameters:
bean
- The beanthrowable
- The error
-
accept
Handles the exception.- Specified by:
accept
in interfaceBiConsumer<T,
E extends Throwable> - Parameters:
bean
- The beanthrowable
- The error
-