Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Design Question
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01054128
Message ID:
01054285
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform