CSharp - Key Properties of System.Exception


The most important properties of System.Exception are the following:

Exception Description
StackTraceA string representing all the methods that are called from the origin of the exception to the catch block.
Message A string with a description of the error.
InnerException The inner exception that caused the outer exception. Inner exception may have another InnerException.

All exceptions in C# are runtime exceptions.

There is no equivalent to Java's compile-time checked exceptions.