Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Design Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01054128
Message ID:
01054285
Vues:
18
>If I create a class, and method A calls method B, which calls C which calls D,
>and an error occurs in D, either syntactically or otherwise, I would like to be
>able to recover to a usefull state.
>
>I generally use a properties called .bErrorOccured and .sErrmsg to indicate
>the error.
>
>But where do you go from there?

Kevin,

I'd add that you might want to look at the structure of the classes. Does A really need to call B, or is it something that A should handle for itself and so on.

I'd highly recommend Steve McConnell's "Code Complete - Second Edition". He writes about this specifically.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform