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.Constructor and Description |
---|
ThrowableCatchingRunnable(java.util.function.Consumer<Throwable> exceptionHandler,
Runnable runnable) |
public ThrowableCatchingRunnable(java.util.function.Consumer<Throwable> exceptionHandler, Runnable runnable)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.