Package hudson.util
Class ExceptionCatchingThreadFactory
- java.lang.Object
-
- hudson.util.ExceptionCatchingThreadFactory
-
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler,ThreadFactory
public class ExceptionCatchingThreadFactory extends Object implements ThreadFactory, Thread.UncaughtExceptionHandler
ThreadFactorythat creates a thread, which in turn displays a stack trace when it terminates unexpectedly.- Since:
- 1.226
- Author:
- Kohsuke Kawaguchi
- See Also:
ErrorLoggingExecutorService
-
-
Constructor Summary
Constructors Constructor Description ExceptionCatchingThreadFactory()ExceptionCatchingThreadFactory(ThreadFactory core)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadnewThread(Runnable r)voiduncaughtException(Thread t, Throwable e)
-
-
-
Constructor Detail
-
ExceptionCatchingThreadFactory
public ExceptionCatchingThreadFactory()
-
ExceptionCatchingThreadFactory
public ExceptionCatchingThreadFactory(ThreadFactory core)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThreadin interfaceThreadFactory
-
uncaughtException
public void uncaughtException(Thread t, Throwable e)
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
-