spring-framework / org.springframework.scheduling.support / TaskUtils / getDefaultErrorHandler

getDefaultErrorHandler

open static fun getDefaultErrorHandler(isRepeatingTask: Boolean): ErrorHandler

Return the default ErrorHandler implementation based on the boolean value indicating whether the task will be repeating or not. For repeating tasks it will suppress errors, but for one-time tasks it will propagate. In both cases, the error will be logged.