Skip to content

Commit

Permalink
Added Dispatch method to manually dispatch caught bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
theJenix committed Apr 13, 2016
1 parent 1ca2603 commit 3d5e17a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions NBug/Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

namespace NBug
{
using System;
using System;

using NBug.Core.Reporting;
using NBug.Core.Reporting.MiniDump;
using NBug.Core.Util;

public static class Exceptions
using NBug.Core.Reporting;
using NBug.Core.Reporting.MiniDump;
using NBug.Core.Util;
using Core.Submission;
public static class Exceptions
{
/// <summary>
/// This function acts as an exception filter for any exception that is raised from within the action body (you can see
Expand Down Expand Up @@ -67,5 +67,9 @@ public static void Report(Exception exception)
// Below never exits application by itself (by design) so execution of the application continues normally
new BugReport().Report(exception, ExceptionThread.Main);
}

public static void Dispatch() {
new Dispatcher();
}
}
}

0 comments on commit 3d5e17a

Please sign in to comment.