O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Exceptions in Visual Studio

As you may recall from our earlier discussion in Chapter 5, exceptions are errors that occur during program execution. Exceptions are thrown by functions within your program and can be caught and handled by Try ... Catch statements. Writing code to handle exceptions is important so your program can gracefully handle program errors at runtime.

→ For an introduction to exceptions in Visual Basic, see Chapter 5, “Visual Basic Building Blocks,” p.113

However, during the normal course of application development, exceptions are likely to occur before you have written code to handle them. In addition, you may want to disable your own exception handling code to troubleshoot program problems. In this section, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required