hudson.util
Class ExceptionCatchingThreadFactory

java.lang.Object
  extended by 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

Constructor Summary
ExceptionCatchingThreadFactory()
           
ExceptionCatchingThreadFactory(ThreadFactory core)
           
 
Method Summary
 Thread newThread(Runnable r)
           
 void uncaughtException(Thread t, Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionCatchingThreadFactory

public ExceptionCatchingThreadFactory()

ExceptionCatchingThreadFactory

public ExceptionCatchingThreadFactory(ThreadFactory core)
Method Detail

newThread

public Thread newThread(Runnable r)
Specified by:
newThread in interface ThreadFactory

uncaughtException

public void uncaughtException(Thread t,
                              Throwable e)
Specified by:
uncaughtException in interface Thread.UncaughtExceptionHandler


Copyright © 2004-2013. All Rights Reserved.