Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling in VCX
Message
De
31/01/2002 00:37:07
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
30/01/2002 09:53:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00612641
Message ID:
00613201
Vues:
16
>Uhmmm...I think I understand it. I'm more used to simple highly scoped error handlers (VB, VBA,Delphi, Oracle) than VFP's layered approach. I can't think of another language that does it the same way. Anyway, it causes my brain to ache when I'm trying to work out where my error handler is at any one time. I'll get used to it once I've pushed it hard enough.

Fox takes encapsulation a step further. Each object should take care of its own errors. IOW, the errors should be handled locally if possible, if not, pass it up using dodefault() which would eventually call the .parent.error etc. Pretty much like medicine - handle easy cases on the spot, send the rest to a doctor, and the doctor may pass them further up to surgery, which may eventually handle the worst cases.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform