Error tracking in vb classes - TechRepublic
General discussion
June 12, 2001 at 09:10 PM
avl

Error tracking in vb classes

by avl . Updated 25 years ago

I’m a little bit confused about how to track the errors in a class module.

Do i do it the regular was on error goto my error handler then handle the thing and get out of my class.

Problem is the procedure/object that called the class should beaware of it. Do i program my class use functions to return a status. Do I add a property to my class that is the status or do I do an error raise before exiting my class in order to be sure that my calling object is aware of the error.

I don’t know about you, but I personally do not really like the err.raise solution. There are already errors enough in the world. It’s not my job to create more 😉

Can you please tell me what’s your opinion about it or send your solutions.

It has caused already numerous discussions within our development team.

This discussion is locked

All Comments