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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BeanExceptionHandler
acceptMethods inherited from interface BiConsumer
andThenMethods inherited from interface 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
-