Types of exceptions in dot net???

Answer Posted / arpit bhatnagar

Exception Class Cause
SystemException A failed run-time check;used as a base
class for other.
AccessException Failure to access a type member, such as a
method or field.
ArgumentException An argument to a method was invalid.
ArgumentNullException A null argument was passed to a
method that doesn't accept it.
ArgumentOutOfRangeException Argument value is out of
range.
ArithmeticException Arithmetic over - or underflow has
occurred.
ArrayTypeMismatchException Attempt to store the wrong type
of object in an array.
BadImageFormatException Image is in the wrong format.
CoreException Base class for exceptions thrown by the
runtime.
DivideByZeroException An attempt was made to divide by
zero.
FormatException The format of an argument is wrong.
IndexOutOfRangeException An array index is out of bounds.
InvalidCastExpression An attempt was made to cast to an
invalid class.
InvalidOperationException A method was called at an
invalid time.
MissingMemberException An invalid version of a DLL was
accessed.
NotFiniteNumberException A number is not valid.
NotSupportedException Indicates sthat a method is not
implemented by a class.
NullReferenceException Attempt to use an unassigned
reference.
OutOfMemoryException Not enough memory to continue
execution.
StackOverflowException A stack has overflown.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we prepairing Interview

1875


What is the difference between viewstate and hidden field in asp.net?

477


What is session state server?

602


Explain diff. Betn dataset and recordset?

538


Why is it preferred to not use finalize for clean up?

552






How to unit test Web API?

693


What are session cookies?

532


What is difference between rest and soap?

565


What a diffgram is, and a good use for one?

552


Can we set master page as a start page?

524


Is asp.net a programming language or framework?

540


What is the caspol.exe tool used for?

531


What is the used of "ispostback" property?

555


How does a web application session work?

543


What is the use of view state?

519