static void recordBug(Exception e){ if(DEBUG){ StringBuilder msg = new StringBuilder(); msg.append(e.getClass().getName() + ": " + e.getMessage() + "\n"); for (StackTraceElement i : e.getStackTrace()) msg.append(i + "\n");
static void recordBug(Exception e) { StringBuilder msg = new StringBuilder(); msg.append(e.getClass().getName() + ": " + e.getMessage() + "\n"); for (StackTraceElement i : e.getStackTrace()) msg.append(i + "\n");  if (DEBUG)
	static void recordBug(Exception e){		if(DEBUG){			StringBuilder msg = new StringBuilder();			msg.append(e.getClass().getName() + ": " + e.getMessage() + "\n");			for (StackTraceElement i : e.getStackTrace())				msg.append(i + "\n");			JOptionPane.showMessageDialog(null, msg);		}		else{			exceptionList.add(e);		}	}