Closed Thread
Results 1 to 6 of 6

Thread: Catching Errors

  1. #1
    Frantic's Avatar
    Frantic is offline Learning Programmer
    Join Date
    May 2006
    Posts
    91
    Rep Power
    0

    Catching Errors

    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?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    dirkfirst is offline Programming Expert
    Join Date
    May 2006
    Posts
    354
    Rep Power
    23
    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!

  4. #3
    Frantic's Avatar
    Frantic is offline Learning Programmer
    Join Date
    May 2006
    Posts
    91
    Rep Power
    0
    So, in other words, I should just let errors crash my programs?

  5. #4
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    perhaps you could make an Error report system?

  6. #5
    Jordan Guest
    An Error Report System is very good for capturing bugs. You may want to think about doing this.

  7. #6
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    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!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. catching sigterm
    By eafkuor in forum C and C++
    Replies: 2
    Last Post: 04-06-2011, 01:11 PM
  2. please help with the catching up choices.....
    By joie2 in forum C and C++
    Replies: 6
    Last Post: 02-10-2010, 11:51 AM
  3. Catching Images on Screen
    By Migan in forum General Programming
    Replies: 13
    Last Post: 08-01-2009, 07:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts