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
ThreadFactory
that 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 Thread
newThread(Runnable r)
void
uncaughtException(Thread t, Throwable e)
-
-
-
Constructor Detail
-
ExceptionCatchingThreadFactory
public ExceptionCatchingThreadFactory()
-
ExceptionCatchingThreadFactory
public ExceptionCatchingThreadFactory(ThreadFactory core)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
uncaughtException
public void uncaughtException(Thread t, Throwable e)
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
-