Chapter 9. Structured Exception Handling

The .NET framework supports the reporting and handling of error conditions through an OOP feature known as structured exception handling. Chapter 2 presented a brief introduction to structured exception handling, along with a high-level overview of throwing and catching exceptions. This chapter discusses structured exception handling in more detail and examines how it affects the way you write code.

Learning the rules and syntax for structured exception handling represents a fairly significant change for programmers who are migrating to the new language from an earlier version of Visual Basic. The underlying mechanisms used by Visual Basic .NET for reporting and handling errors are much different from ...

Get Building Applications and Components with 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.