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 ThreadFactory
public void uncaughtException(Thread t, Throwable e)
uncaughtException
in interface Thread.UncaughtExceptionHandler
Copyright © 2004–2021. All rights reserved.