Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try... this.error()... and then catch
Message
 
À
09/05/2004 13:05:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00897769
Message ID:
00902284
Vues:
24
>Hey Fabio,
>
>
>You want a automatic escalation of the Errot trapped
>or of a error fired within the Error ?
>

>
>No not automatic, Just the ability to escalate the original exception from the Error Method. Right now you can't do that and in my opinion one should be able to. I think you are saying the same thing, right?
>
>I agree with your comment about the strange facts.
>
>IMO the Error() is kind of good thing. It does allow encapsulation of error handling however it doesn't interrupt a control structure like Try/EndTry. Combining the ability of both error handling structures would be ideal.

Bob,

ON ERROR and TRY/CATCH are really designed for two different purposes. The former is meant to handle things that can be corrected programmatically. The latter, however, is designed to handle exceptions, such as the inability to exclusively open a file.

In this latter case, what you have isn't a programming error, but rather an environment error, or exception.
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