PowerToys/Wox/CrashReporter.cs

27 lines
532 B
C#
Raw Normal View History

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