Is there a best practice for naming the error handling section? How about the resume label? I use “ErrorHandler:” and “ProcExit:”. Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not really – apart from making sure it’s reasonable. If I’m using On Error Resume Next however I usually indent the code after it, e.g.:
This gives a clear visual clue that you’ve temporarily disabled the normal error handling for a short period.
For the error handler label, I’ve used various including the dull ‘ErrorHandler’ and the rather more prosaic label ‘OopsSorryIveCockedItUpAgain’. Both are fairly meaningful though 🙂