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*

4
  • You can display any type of message you wish, or react to the exception in any number of ways, you're in control once you've caught the exception. Commented Apr 22, 2013 at 10:58
  • If you're going to debug, why don't just use a debugger? If any unexpected exceptions occurs in end-user, just log it and let the program terminates. Commented Apr 22, 2013 at 10:58
  • 2
    Better to add a message for each exception instead of just 1..add multiple catch blocks and add msgbox in each. don't catch exception directly Commented Apr 22, 2013 at 10:59
  • I have problem now...you all provided with helpful answers and I don't know which one to pick as correct.. Basically the difference between ex.toString() and ex.Message that almost everybody mention is the think that helps Commented Apr 22, 2013 at 11:07