Skip to content
Snippets Groups Projects
Commit 146eaa71 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: Try/Catch

parent 249b7f1f
Branches
Tags
1 merge request!9Fix: Try/Catch
Pipeline #825302 passed
......@@ -18,38 +18,69 @@ public class CompleteReporting : Reporting<CompleteReportingOptions>
var result = new List<ReportingFileObject>();
// Project Reporting
try
{
result.AddRange(new ProjectReporting(new ProjectReportingOptions
{
DummyMode = Options.DummyMode
}).GenerateReporting());
}
catch (Exception e)
{
Console.WriteLine($"Skipping ProjectReporting: {e.Message}");
}
// Resource Reporting
try
{
result.AddRange(new ResourceReporting(new ResourceReportingOptions
{
DummyMode = Options.DummyMode
}).GenerateReporting());
}
catch (Exception e)
{
Console.WriteLine($"Skipping ResourceReporting: {e.Message}");
}
// User Reporting
try
{
result.AddRange(new UserReporting(new UserReportingOptions
{
DummyMode = Options.DummyMode
}).GenerateReporting());
}
catch (Exception e)
{
Console.WriteLine($"Skipping UserReporting: {e.Message}");
}
// Application Profile Reporting
try
{
result.AddRange(new ApplicationProfileReporting(new ApplicationProfileReportingOptions
{
DummyMode = Options.DummyMode
}).GenerateReporting());
}
catch (Exception e)
{
Console.WriteLine($"Skipping ApplicationProfileReporting: {e.Message}");
}
// System Status Reporting
try
{
result.AddRange(new SystemReporting(new SystemReportingOptions
{
DummyMode = Options.DummyMode
}).GenerateReporting());
}
catch (Exception e)
{
Console.WriteLine($"Skipping SystemReporting: {e.Message}");
}
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment