public void NullReferenceExpetion(string toWrite) { FileHandler handler = new FileHandler(); handler.WriteData("No user file exception was caught at: " + DateTime.UtcNow.ToShortDateString() + " " + DateTime.UtcNow.ToShortTimeString()); }