Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This method alone does nothing. Do you subscribe to the UnhandledException event? And if your conclusion from reading the linked Q&A is "Using try-catch is bad practice", you may want to read it again. Commented Jan 6, 2016 at 13:38
  • Yes, that's the problem. Although since I don't have a main method, where should I be subscribing? As for the attached, it says that in bold. I do agree that it goes into detail but even where the answer talks about logging, it talks about logging and allowing the app to crash. I'm trying to avoid this. Commented Jan 6, 2016 at 13:42
  • It says "without a good reason". Anyway you should not want to do this from a class library. It's up to the consuming application how to handle exceptions. Commented Jan 6, 2016 at 13:49