public void WriteToReport(Object objMessage) { string message = CheckNullObject(objMessage, "WRITE TO REPORT"); XmlManager xmlWorker = new XmlManager(); try { xmlWorker.XmlReport(objMessage); reportResults( "Write to Report", "Write to Report command passed.", LogLevel.Success ); } catch (Exception e) { reportResults( true, "Write to Report", "Write to Report command failed. report.xml is not accessible.", LogLevel.Error, e.StackTrace); } }