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

Explain different types of Caching techniques in ASP.NET?

637


How does asp.net work?

639


What is the difference between web config and machine config files?

648


What is app_code folder in asp net?

626


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

691






How many types of state management are there in asp net?

611


Define the term Scavenging in Caching?

663


List the asp.net validation controls?

601


What is client side state management?

593


How to use ipostback?

669


What are triggers of an updatepanel?

637


How many types of cache are there?

621


How to add DateTime Control in normal DataGrid Server Control?

690


Is viewstate enabled by default?

621


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

1969