public BadConfigFormatException(String newMessage) {
		super(newMessage);
		message = newMessage;
		// write to the log file
		PrintWriter writer = null;
		try {
			writer = new PrintWriter("log.txt");
		} catch (FileNotFoundException e) {
			System.out.println("Writer didn't load");
		}
		writer.println(newMessage);
		writer.close();
	}