1 16 17 package org.apache.commons.launcher; 18 19 36 public class ExitOnErrorThreadGroup extends ThreadGroup { 37 38 40 46 public ExitOnErrorThreadGroup(String name) { 47 48 super(name); 49 50 } 51 52 54 60 public void uncaughtException(Thread t, Throwable e) { 61 62 if (e instanceof ThreadDeath ) 63 return; 64 65 Launcher.error(e); 66 System.exit(1); 67 68 } 69 70 } 71 | Popular Tags |