Package io.micronaut.scheduling
Class DefaultTaskExceptionHandler
java.lang.Object
io.micronaut.scheduling.DefaultTaskExceptionHandler
- All Implemented Interfaces:
BeanExceptionHandler<Object,,Throwable> TaskExceptionHandler<Object,,Throwable> BiConsumer<Object,Throwable>
@Singleton
@Primary
public class DefaultTaskExceptionHandler
extends Object
implements TaskExceptionHandler<Object,Throwable>
The default exception handler used if non-other is found. Simply logs the exception.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.exceptions.BeanExceptionHandler
acceptMethods inherited from interface java.util.function.BiConsumer
andThenMethods inherited from interface io.micronaut.scheduling.TaskExceptionHandler
handleCreationFailure
-
Constructor Details
-
DefaultTaskExceptionHandler
public DefaultTaskExceptionHandler()
-
-
Method Details
-
handle
Description copied from interface:BeanExceptionHandlerHandles the exception.- Specified by:
handlein interfaceBeanExceptionHandler<Object,Throwable> - Parameters:
bean- The beanthrowable- The error
-