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

Is react a template engine?

686


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

760


How does session authentication work?

689


What are the events in a page life cycle?

718


Explain State management in asp.net

808


What are the ways to sending the data in ASP.NET page?

748


Define a web service in .net?

819


What are the disadvantages of view state?

826


Explain server-side scripting and client-side scripting.

694


What is form submit?

698


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

749


What are the different authentication modes in asp.net?

723


Can you change a master page dynamically at runtime? How?

687


What is the purpose of using MVC programming pattern in ASP.NET?

768


Explain the difference between asp.net mvc and asp.net webforms

781