public class ThrowableCatchingRunnable extends Object implements Runnable
Throwables
from the wrapped runnable. This class is
useful when the wrapped runnable is submitted to an executor where the UncaughtExceptionHandler
is not usable.public ThrowableCatchingRunnable(java.util.function.Consumer<Throwable> exceptionHandler, Runnable runnable)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.