Called by the JVM if any of the threads in this thread group terminates with an error. Logs a warning to the logger provided in the ctor.
The error ThreadDeath is even logged during expected thread lifetime, because user threads are not supposed to be terminated through the deprecated stop() method during their normal operation.
During shutdown, exceptions are not logged, because the killing of surviving user threads is logged already in the cleanUp method.
: since JDK 1.5 an UncaughtExceptionHandler can be attached to each thread, which may be an alternative to using a thread group for this purpose.
- See also:
- java.lang.ThreadGroup#uncaughtException(java.lang.Thread, java.lang.Throwable)
|