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 ...

Get Special Edition Using Microsoft® Visual Basic® .NET 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.