Information générale
Catégorie:
Programmation Orientée Object
Titre:
How to handle errors
I'm finally getting to do some real OOP programming and am trying to learn how to do things the "right" way. One of the things that has got me confused is error handling. I just found out that if you put an Error method in an object that it acts like ON ERROR, which is cool. :) But I'm not sure where to go from there.
Once the error method has control, how do I let the code that caused the error know there was a problem? I want the original method to stop processing and return the error to what called it, so somehow it has to know.
I can think of various ways to do it, but they all seem rather kludgy. So I thought I'd ask what the usual way to do it is.
Thanks,
Michelle
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement