How can I catch exceptions thrown in secondary threads I create?

John Zukowski

You need to create the secondary threads in a custom ThreadGroup. Subclass ThreadGroup and override public void uncaughtException(Thread source, Throwable throwable). This method would then be notified when an uncaught exception is thrown.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.