Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created October 9, 2011 18:21
Show Gist options
  • Select an option

  • Save PanosJee/1273983 to your computer and use it in GitHub Desktop.

Select an option

Save PanosJee/1273983 to your computer and use it in GitHub Desktop.
You can even override the user notification options
try {
    throw new InvalidOperationException("An exception occured while executing in a different thread.");
}
catch (Exception ex) {
    var overridenOptions = BugSenseHandler.DefaultOptions();
    overridenOptions.Text = ex.Message + Environment.NewLine + "Do you want to send the Exception?";
    overridenOptions.Type = enNotificationType.MessageBoxConfirm;
    BugSenseHandler.HandleError(ex, string.Format("User {0}", _user), overridenOptions);
}
@jasonshortphd
Copy link

This does not work with the current SDK. There is no DefaultOptions(). I am using the nuget package:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment