Summary

In this hour, you've seen the two major error-handling constructs of Try/Catch/Finally and On Error in action. These constructs along with the general design considerations should help you in your error-handling code. The general rule of thumb is to overhandle errors during development and trim back the excess when you near implementation. In addition, you've had a chance to build up a Windows Forms application that utilized a few of the typical error-handling situations that you will face day in and day out. These techniques, coupled with the data updating error conditions, will cover most of what you need for ADO.NET.

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.