Flow.Launcher/Wox.CrashReporter/CrashReporter.cs

27 lines
546 B
C#
Raw Normal View History

2015-01-11 13:52:30 +00:00
using System;
namespace Wox.CrashReporter
{
public class CrashReporter
{
private Exception exception;
public CrashReporter(Exception e)
{
exception = e;
}
public void Show()
{
if (exception == null) return;
2015-01-16 15:42:12 +00:00
if (exception.InnerException != null)
{
exception = exception.InnerException;
}
2015-01-11 13:52:30 +00:00
ReportWindow reportWindow = new ReportWindow(exception);
reportWindow.Show();
}
}
}