Created
October 9, 2011 18:21
-
-
Save PanosJee/1273983 to your computer and use it in GitHub Desktop.
You can even override the user notification options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not work with the current SDK. There is no DefaultOptions(). I am using the nuget package: