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:
01054176
Views:
23
I asked my question wrong.

I have a process that goes thru various methods until I reach a point
where I'm updating a record.

I know the record should be there, but I test for it just in case.

If the record is not there, what do you do at this point? You're already
4 levels deep, and theres no reason to cancel, but you want to notify the
user and recover gracefully.

A TRY/CATCH in the 1st method won't solve this scenerio.



>>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?
>
>Use try catch in the method A.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform