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
 
Back
Top