What is an Exception? How many exceptions exist in Dot net
and explain them?
Answer Posted / s.malathy
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 ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is SOAP? How you will do windows and forms authentication?
What is the difference between encrypting a password and applying a hashing?
What are pdbs?
why you wouldn't want to write into it even if you could
Why do we use msmq?
How do I spawn a thread?
Can "this" be used within a static method?
Explain me what is the .net framework and how does it work?
Explain how to load the contents of an xml file into an xmldocument object?
What is an assembly? What are the different types of assemblies?
How can I get at the win32 api from a .net program?
How to convert a .NET object into COM operabililty?
When we use windows api in .net is it managed or unmanaged code?
Explain boxing and unboxing in .net.
What are the new 2.0 features useful for?