Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling advice for VB.Net
Message
From
25/11/2002 07:16:22
Andrew Fell-Gordon
Calypso Publications Ltd
Enfield, United Kingdom
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Error handling advice for VB.Net
Miscellaneous
Thread ID:
00726369
Message ID:
00726369
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform