Class DefaultTaskExceptionHandler

  • All Implemented Interfaces:
    io.micronaut.core.exceptions.BeanExceptionHandler<java.lang.Object,​java.lang.Throwable>, TaskExceptionHandler<java.lang.Object,​java.lang.Throwable>, java.util.function.BiConsumer<java.lang.Object,​java.lang.Throwable>

    @Singleton
    @Primary
    public class DefaultTaskExceptionHandler
    extends java.lang.Object
    implements TaskExceptionHandler<java.lang.Object,​java.lang.Throwable>
    The default exception handler used if non other is found. Simply logs the exception.
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(java.lang.Object bean, java.lang.Throwable throwable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.exceptions.BeanExceptionHandler

        accept
      • Methods inherited from interface java.util.function.BiConsumer

        andThen
    • Constructor Detail

      • DefaultTaskExceptionHandler

        public DefaultTaskExceptionHandler()
    • Method Detail

      • handle

        public void handle​(@Nullable
                           java.lang.Object bean,
                           @NonNull
                           java.lang.Throwable throwable)
        Specified by:
        handle in interface io.micronaut.core.exceptions.BeanExceptionHandler<java.lang.Object,​java.lang.Throwable>