winforms - Exception Handling and User Friendly messages -
I am developing a winforms application and I would like to know what is the best practice for handling exceptions whenever I Exception happens when I display the required information to an exception dialog, i.e. message and stacktrace. In cases where I have a lot of confusion, in cases where I want to see only a friendly message from the user but at the same time make sure that the developer will get the necessary data for debugging. What is the best way to do this?
I have not used it personally, but it seems a very good tool is your best bet The error may be to log on to the disk, so it should be available to anyone looking at it, but it should not pop up on the way to its users. If you want, you can open a window so that the user can ask you to submit exception information and stack trace through your web site (by clicking OK). Avoid sending personal information, which is probably not to send parameter values.
EDIT: Oh, avoid saying "Exception and stack trace". Say "There has been an error, but with your help, we can fix it faster. Would you like to automatically send error information to ____ at this time? Please note that no personal information will be transmitted with error reports 'Details' to show full information on the report. If they click on the details, expand the window vertically to show a read only text box with the data. Switch to.
Comments
Post a Comment