In my most recent project I wrapped try/catch tags around almost every function and left the catch section blank. Is this good practice for catching errors?
I figure if there is going to be a bug and an error occurs it is better to proceed and not notify the user. This could impede sales.
Suggestions?
I don't think putting a try/catch around everything is the best idea. I've always read that you should only use a try/catch if you know what to do with the error. In other words, if you don't know what will happen don't do it!
DirkFirst Tutorials | Linux Forum
So, in other words, I should just let errors crash my programs?
perhaps you could make an Error report system?
An Error Report System is very good for capturing bugs. You may want to think about doing this.
Yeah any after all you will know what is happening with your software the crashes etc.. its a very good thing to do and it should be simple to do ( well I dont know in C# ) but in the languages I know its simple to make!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks