Does a reference exist with a catalog of predefined exceptions for the .NET framework along with examples of when is it appropriate to use each?
SystemException class is the base class for all predefined system exception. Some of the exception classes derived from the System.
There are two types of exceptions: exceptions generated by an executing program and exceptions generated by the common language runtime. System. Exception is the base class for all exceptions in C#.
It's possible to get a list of them while in Visual Studio: press Ctl
+ Alt
+ E
EDIT: I was able to find this site that has a pretty comprehensive list of .NET Exceptions and a brief description of what causes them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With