Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference for predefined exceptions in .NET

Tags:

.net

exception

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?

like image 608
newdayrising Avatar asked Feb 19 '10 20:02

newdayrising


People also ask

Which is the parent class for all exceptions in C#?

SystemException class is the base class for all predefined system exception. Some of the exception classes derived from the System.

What are common types of exception in C#?

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#.


1 Answers

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.

like image 140
CAbbott Avatar answered Oct 13 '22 23:10

CAbbott