Package io.micronaut.scheduling
Interface TaskExceptionHandler<T,E extends Throwable>
- Type Parameters:
T- The generic type of the task beanE- The generic type of the exception
- All Superinterfaces:
BeanExceptionHandler<T,,E> BiConsumer<T,E>
- All Known Implementing Classes:
DefaultTaskExceptionHandler
An exception handler interface for task related exceptions.
- Since:
- 1.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidhandleCreationFailure(BeanDefinition<T> beanType, E throwable) Handle an error that occurs during creation of the scheduled task.Methods inherited from interface io.micronaut.core.exceptions.BeanExceptionHandler
accept, handleMethods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
handleCreationFailure
Handle an error that occurs during creation of the scheduled task.- Parameters:
beanType- The bean typethrowable- The throwable- Since:
- 4.0.0
-