O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

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

Structured Exception Handling (SEH)

The errors in a software program can be classified as syntax errors, runtime errors, and logical errors.

The syntax errors are caught by the compiler and signaled by the IDE. You are by now familiar with the underlining of an undeclared variable name or invalid expression with the blue line. If you keep the mouse cursor hovering over the respective expression, the actual error message will be shown. The errors are also shown in the output window (at the bottom of the Visual Studio .NET IDE) when you try to compile a program with syntax errors.

The runtime errors (most commonly known as exceptions) are problems that arise when the program is executed. For example, let's assume that you have a statement like: ...

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