O'Reilly logo

Visual Basic 2010 Unleashed by Alessandro Del Sole

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

Practical Inheritance: Building Custom Exceptions

In Chapter 6, “Error Handling and Exceptions,” you learned about exceptions in .NET development; you saw what exceptions are and how you can intercept exceptions at runtime to create well-formed applications that can handle errors. The .NET Framework ships with hundreds of exceptions related to many aspects of .NET development. There could be situations in which you need to implement custom exceptions. Building custom exceptions is possible due to inheritance. A custom exception can inherit from the root System.Exception class or from another exception (such as System.IO.IOException) that necessarily inherits from System.Exception. Custom exceptions should always be CLS-compliant. Let’s retake ...

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