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:
io.micronaut.core.exceptions.BeanExceptionHandler<T,,E> BiConsumer<T,E>
- All Known Implementing Classes:
DefaultTaskExceptionHandler
public interface TaskExceptionHandler<T,E extends Throwable>
extends io.micronaut.core.exceptions.BeanExceptionHandler<T,E>
An exception handler interface for task related exceptions.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidhandleCreationFailure(io.micronaut.inject.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
-