Exception Type |
Description |
---|---|
System.Exception |
A generic exception from which other exceptions derive |
System.ArgumentException |
A means of indicating that one of the parameters passed into the method is invalid |
System.ArgumentNullException |
Indicates that a particular parameter is null and that this is not valid for that parameter |
System.ApplicationException |
A custom application exception that developers can use to indicate special application errors that are not fatal |
System.FormatException |
Indicates that the string format is not valid for conversion |
System.IndexOutOfRangeException |
Indicates that an attempt was made to access an array element that does not exist |
System.InvalidCastException |
Indicates that an attempt to convert from one data type to another was not a valid conversion |
System.NotImplementedException |
Indicates that although the method signature exists, it has not been fully implemented |
System.NullReferenceException |
Thrown when code tries to access a variable that does not yet contain any data |
System.ArithmeticException |
Indicates an invalid math operation, not including divide by zero |
System.ArrayTypeMismatchException |
Occurs when attempting to store an element of the wrong type into an array |
System.StackOverflowException |
Generally indicates that there is an infinite loop in which a method is calling back into itself (known as recursion) |