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

Error Handling

Computers really aren’t that smart. They do exactly what you tell them to, so if you make a mistake and tell them to do something completely wrong, they will try to do it anyway. An error is something that isn’t supposed to happen in your program. There are many different types of errors that may occur in a computer program, such as syntax errors, logic errors, and runtime errors. Syntax errors are generally caught while you are typing the code and can be fixed easily because Visual Studio tells you it doesn’t understand what you typed. Logic errors can usually be identified by incorrect operation of the program, and are fixed by examining and then correcting an erroneously designed section of code.

However, errors that occur ...

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