Try Catch ?

  • Thread starter Thread starter Tiraman
  • Start date Start date
T

Tiraman

Hi ,

Can some one tell me what is the BIG issue around the try catch mechanism ?

what is the deferent between the try catch in .NET and the on error resume
next in VB6

beside that i can eliminate the errors ?


Best Regards ,

Tiraman :-)
 
Try Catch is more structured and just all around better.
You have blocks of code that can be nested inside eachother, with clear
logic about exactly what will happen in case of an error.
The fact that the "GOTO" statement is associated with the old ON ERROR
technique should be a clue that it tends to result in spaghetti code.
 
10x

Steve C. Orr said:
Try Catch is more structured and just all around better.
You have blocks of code that can be nested inside eachother, with clear
logic about exactly what will happen in case of an error.
The fact that the "GOTO" statement is associated with the old ON ERROR
technique should be a clue that it tends to result in spaghetti code.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net



mechanism
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top