Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created October 30, 2012 15:10
Show Gist options
  • Save PanosJee/3980791 to your computer and use it in GitHub Desktop.
Save PanosJee/3980791 to your computer and use it in GitHub Desktop.
// Check is a task if task is faulted and log task exception if it failed
Task t = new Task(() =>
{
int x = 5;
int y = 0;
int z = x / y;
});
t.Start();
BugSenseHandler.CheckTaskFault("mathtask", t);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment