List of common C# exceptions

 
following is the list of common exception in c#:

Exception ClassCause of Exception
SystemExceptionA failed run time check; used as a base class for other exceptions .
AccessExceptionFailure to access a type member , such as a method or field.
ArgumentExceptionAn argument to a method was invalid.
ArgumentNullExceptionA null argument was passed to a method that does not accept it.
ArgumentOutOfRangeExceptionArgument value is out of range.
ArithmeticExceptionArithmetic over or underflow has occurred.
ArrayTypeMismatchExceptionAttempt to store the wrong type of object in an array.
BadImageFormatExceptionImage is in wrong format
CoreExceptionBase class for exceptions thrown by the runtime.
DevideByZeroExceptionAn attempt was made to divide by Zero.
FormatExceptionThe format of an argument is wrong.
IndexOutofRangeExceptionAn Array index is out of range
InvalidCastExceptionAn attempt was made to cast to an invalid class.
InvalidOperationExceptionA method was called at an invalid time
MissingmemberExceptionAn invalid version of a DLL was accessed
NotFiniteExceptionA number is not valid
NotSupportedExceptionIndicates that a method is not implemented by a class
NullReferenceExceptionAttempt to use an unassigned reference
OutofmemoryExceptionNot enough memory to continue execution
StackOverFlowExceptionA Stack has overflowed

 

facebooktwittergoogle_plusredditpinterestlinkedinmail

3 thoughts on “List of common C# exceptions”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>