+
+ if(CampusAppContext.DEBUG) {
+ final Thread.UncaughtExceptionHandler systemExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
+ final CampusAppExceptionHandler oExceptionHandler = new CampusAppExceptionHandler();
+ Thread.setDefaultUncaughtExceptionHandler (new Thread.UncaughtExceptionHandler() {
+ @Override
+ public void uncaughtException(Thread thread, Throwable e) {
+ oExceptionHandler.handleUncaughtException(thread, e);
+ //systemExceptionHandler.uncaughtException(thread, e);
+ System.exit(1);
+ }
+ });
+ }
+