Interface TaskExceptionHandler<T,E extends Throwable>

Type Parameters:
T - The generic type of the task bean
E - 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 Type
    Method
    Description
    default void
    handleCreationFailure(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, handle

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Method Details

    • handleCreationFailure

      default void handleCreationFailure(io.micronaut.inject.BeanDefinition<T> beanType, E throwable)
      Handle an error that occurs during creation of the scheduled task.
      Parameters:
      beanType - The bean type
      throwable - The throwable
      Since:
      4.0.0