public class ExceptionCatchingThreadFactory extends Object implements ThreadFactory, Thread.UncaughtExceptionHandler
ThreadFactory that creates a thread, which in turn displays a stack trace
when it terminates unexpectedly.| Constructor and Description |
|---|
ExceptionCatchingThreadFactory() |
ExceptionCatchingThreadFactory(ThreadFactory core) |
| Modifier and Type | Method and Description |
|---|---|
Thread |
newThread(Runnable r) |
void |
uncaughtException(Thread t,
Throwable e) |
public ExceptionCatchingThreadFactory()
public ExceptionCatchingThreadFactory(ThreadFactory core)
public Thread newThread(Runnable r)
newThread in interface ThreadFactorypublic void uncaughtException(Thread t, Throwable e)
uncaughtException in interface Thread.UncaughtExceptionHandlerCopyright © 2019. All rights reserved.