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

In early binding will the method invoked on com component will verify it?s existance in the system or not ?

0 Answers   DELL,


How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio.net language (vb.net)?

2 Answers   rocsearch,


Tell About Global.asax ?

3 Answers   Keane India Ltd,


What is Partial PostBack in ASP.NET?

0 Answers   Viscus Infotech,


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

0 Answers   HCL,


What are sessions in asp net?

0 Answers  


Where we create sessions for Banking Applications and how to create? expalin with code?

1 Answers   Wipro,


What is viewstate parameter?

0 Answers  


Explain server-side scripting and client-side scripting.

0 Answers  


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

0 Answers   Siebel,


To redirect the user to another page which method do we use without performing a round trip to the client?

0 Answers   Siebel,


What is asp.net response object?

0 Answers  


Categories