Common (and all System) Exceptions in .NET
I couldn’t find a list of exceptions for .NET anywhere on the web, although, I didn’t look hard. Below is a list of the exceptions that are in the System namespace. The exceptions in bold are, what I would consider, the most common.
AccessViolationException
AppDomainUnloadedException
ApplicationException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
ArithmeticException
ArrayTypeMismatchException
BadImageFormatException
CannotUnloadAppDomainException
ContextMarshalException
DataMisalignedException
DivideByZeroException
DllNotFoundException
DuplicateWaitObjectException
EntryPointNotFoundException
Exception
ExecutingEngineException
FieldAccessException
FormatException
IndexOutOfRangeException
InsufficientMemoryException
InvalidCastException
InvalidOperationException
InvalidProgramException
InvalidTimeZoneException
MemberAccessException
MethodAccessException
MissingFieldException
MissingMemberException
MissingMethodException
MulticastNotSupportedException
NotFinateNumberException
NotSupportedException
NullReferenceException
ObjectDisposedException
OperationCanceledException
OutOfMemoryException
OverflowException
PlatformNotSupportedException
RankException
StackOverflowException
SystemException
TimeoutException
TimeZoneNotFoundException
TypeInitializationException
TypeLoadException
TypeUnloadedException
UnauthorizedAccessException
UniFormatException
If there are any additional exceptions you’d recommend me listing from other namespaces, let me know.