...

/

Exception Types

Exception Types

Explore different types of exceptions.

We'll cover the following...

The Exception class

An exception is nothing more than a class. So, when an exception is generated, an object of a given exception type is created and thrown.

The base class of all exceptions in .NET is the Exception class. It defines several properties that can be used to obtain more information about the exception that’s occurred.

  • InnerException: This stores the exception object that caused the current exception.
...