Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling advice for VB.Net
Message
De
25/11/2002 07:16:22
Andrew Fell-Gordon
Calypso Publications Ltd
Enfield, Royaume Uni
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Error handling advice for VB.Net
Divers
Thread ID:
00726369
Message ID:
00726369
Vues:
54
I am starting a project to build a dll using VB.Net. My background is in Visual Foxpro. We are at the stage of design where we need to look at error handling strategies and this is one area where vb seems to differ markedly from Fox.

In VFP we have an error method on every class called automatically when a run time error occurs. I program this at my own base class level to accumulate local information and thrn throw the error to a global error handler which writes away the error details and system state to help me sort out the problem. As the error method is called automatically I only put error trap code in other methods if I am deliberately tempting an error.

Ideally, I would like to recreate this situation in VB but if I have understood what I have read (by no means guaranteed) I will have to have a Try,Catch,Finally construct or an OnError statement in each method.

Is this correct? Does anyone have views on error handling strategies that can be adopted, especially for non-windows objects? Any advice would be very welcome.

Thanks

Andrew
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform