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
Please explain what is a delegate?
Explain what is an application domain?
Describe the use of following com+ services jit activation, queued components, object pooling.?
What is dot net architecture?
Why inheritance is important?
How does cas works?
What is the difference between .net 2000 and .net 2005(features)? Which one is better?
Explain about managed heap?
What is strong-typing versus weak-typing? Which is preferred?
Name the classes that are introduced in the system.numerics namespace.
What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?
Explain the difference between vb and vb.net?
what is prototype design pattern in .net
Is .net capable of supporting multi-thread?
How does u handle this COM components developed in other programming languages in .NET?