Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can the global error handler be called via TRY-CATCH
Message
 
 
À
26/06/2007 11:55:49
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01235566
Message ID:
01235709
Vues:
18
>>>Hi all
>>>
>>>Is there a mechanism to escalate the error to the global error handler if not handled by the TRY-CATCH. Or do we have to call the global error handler manually?
>>>
>>>Please advise.
>>
>>Check on error command.
>
>Since I had a chat with Bhavbhuti about this, I think the question is "if handled by try-catch, can we still pass it on to the global error handler somehow?". I.e. we catch a few local errors but leave the rest to the global one. I haven't found a way to do that.

Perhaps something like
TRY

CATCH to loException
  if we don't want to use local handling
     pass to global error handler
       =GlobalErrorHandler(loException.ErrorNo, ....)
  endif
endtry
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform