ADO.NET Error Management Strategies

William R. Vaughn · Apress eBooks · 2002

One of the fundamental changes you’ll encounter with the .NET Framework (regardless of the language you use) is how errors are exposed and managed. While the Visual Basic developer can still use the On Error GoTo syntax, it might not make much sense in light of how .NET exposes exceptions. Frankly, as long as On Error management evolves in Visual Basic .NET it remains moving target. Many fundamental On Error features were not implemented in the beta versions, which created quite a disturbance in the developer community. As a result (or so it seems), On Error handling has been almost completely restored. However, this chapter focuses on use of the new Try/Catch error handler—what works and what doesn’t and why you’re going to want to (need to) switch. I also outline the various types of Exception classes you’re bound to trip as you work with ADO.NET.

Read the paper · More papers on PaperTik