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
-
Method Summary
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
Methods inherited from interface io.micronaut.scheduling.TaskExceptionHandler
handleCreationFailure
-
Constructor Details
-
DefaultTaskExceptionHandler
public DefaultTaskExceptionHandler()
-
-
Method Details
-
handle
Description copied from interface:BeanExceptionHandler
Handles the exception.- Specified by:
handle
in interfaceBeanExceptionHandler<Object,
Throwable> - Parameters:
bean
- The beanthrowable
- The error
-