I am starting to get into error trapping with the Try statement and was wondering how others are using it.
More specifically, do you use one on every part of your code that could throw an error or just one for the entire process in the page?
Example, let's say you need to execute 2 functions in your code:
objCart.UpdateCart()
objCart.DisplayCart()
Would you wrap this within 1 try statement or 2? I would think 2 so you could get a better handle on the actual error. If you use 1, the error could happen in either place and you would have trouble finding it.
Thanks,
Mark
More specifically, do you use one on every part of your code that could throw an error or just one for the entire process in the page?
Example, let's say you need to execute 2 functions in your code:
objCart.UpdateCart()
objCart.DisplayCart()
Would you wrap this within 1 try statement or 2? I would think 2 so you could get a better handle on the actual error. If you use 1, the error could happen in either place and you would have trouble finding it.
Thanks,
Mark