O'Reilly logo

Microsoft® Visual Basic® 2010 Step by Step by Michael Halvorson

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

Chapter 9. Trapping Errors by Using Structured Error Handling

After completing this chapter, you will be able to:

  • Manage run-time errors by using the Try … Catch error handler.

  • Create a disc drive error handler that tests specific error conditions by using the Catch statement.

  • Write complex error handlers that use the Exception object and the Message property.

  • Build nested Try … Catch statements.

  • Use error handlers in combination with defensive programming techniques.

  • Leave error handlers prematurely by using the Exit Try statement.

In Chapter 8 you learned how to recognize run-time errors in a Microsoft Visual Basic program and how to locate logic errors and other defects in your program code by using the Microsoft Visual Studio 2010 debugging tools. ...

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