Predefined Exception Classes

The framework libraries have several predefined exception classes to choose from. These classes are designed for the most common and generic type of exceptions that occur.

Previous examples in this chapter showed the System.Exception class being used in catch clauses. It is the most generic exception that can be generated. All other exception classes inherit from the System.Exception class.

Get C# Unleashed 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.