Types of exceptions in dot net???



Types of exceptions in dot net???..

Answer / 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

More ASP.NET Interview Questions

Explain diff between dataset and datareader?

0 Answers  


In my code i have 3 tables,i have to insert 3 tables data using single insert query so that i wrote transations in a sp.but what my problem is,in those 3 tables i have to include my empId from another table.when i'm passing values im getting error at this EmpId. how can i solve this error to execute insert query? plesae tell me the solution...

1 Answers  


How do you hide the columns?

0 Answers  


Tell About Web.config ?

2 Answers   Keane India Ltd,


Why web api is better than wcf?

0 Answers  






What is protected configuration?

0 Answers  


Can we change the session timeout in ASP.NET, if yes then how and from where?

7 Answers   L&T,


What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


what is the trace in ASP.NET

4 Answers  


What is difference between rest and soap?

0 Answers  


Differentiate between a hyperlink control and a linkbutton control.

0 Answers  


what is shared assembly asp net

1 Answers   Fidelity,


Categories