Application #5. Custom Exceptions

Even though the .NET Framework provides scores of exception types, seemingly one for every possible kind of exception, they might not be enough for you. This sample demonstrates how to create and use custom exceptions in Visual Basic .NET, as well as how to set up a global exception handler.

Building Upon...

Application #4: Try...Catch...Finally

Application #7: Object-Oriented Features

New Concepts

Creating custom exceptions to enhance those already provided by the .NET Framework is easy. We’ll show you uses for such exceptions and how to create them.

Uses for Custom Exceptions

The .NET Framework class library provides more than 100 built-in exception types, covering almost every imaginable error. Why would ...

Get 101 Microsoft® Visual Basic® .NET Applications 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.