Introduction
This article explains the exception classes available in the .net framework. The details are collected from the MSN Microsoft website and are formatted for the convenience of the readers.
System.Arithmetic Exception: The exception that is thrown for errors in ana arithmetic, casting or conversion operation. It includes:
1. System.DivideByZeroException: It is thrown when there is an attempt to divide an integral or decimal value by zero.
2. System.NotFiniteNumberException: thrown when a floating-point value is positive infinity, negative infinity or Not-a-Number.
3. System.OverFlowException: thrown when an arithmetic, casting or conversion operation in a context results in an overflow.
System.ApplicationException: Exception that is thrown when a non-fatal application error occurs
1.System.Reflection.InvalidFilterCriteriaException: thrown when the filter criteria is not valid for the type of filter we are using
2. System.Reflection.TargetException: thrown when an attempt is made to invoke an invalid target
3. System.Reflection.TargetInvocationException: thrown by the methods invoked through reflection. This class cannot be inherited
4. System.Reflection.TargetParameterCountException: thrown when the number of parameters for an invocation does not match the number expected. This class cannot be inherited
System.ArgumentException: Exception is thrown when one of the arguments provided to a method is not valid
1. System.ArgumentNullException: Thrown when a null reference is passed to a method that does not accept it as a valid argument
2. System.ArgumentOutOfRange: thrown when the value of an argument is outside the allowable range of values as defined by the invoked method
3. System.ComponentModel.InvalidEnumArgument:thworn when using invalid arguments that are enumerators
4. System.DuplicateWaitObjectException:thrown when an object appears more than once in an array of synchronization objects
System.ArrayTypeMismatchException: Exception is thrown when an attempt is made to store an element of the wrong type within an array.
System.BadImageFormatException: Exception is thrown when the file image of a DLL or an executable program is invalid
System.CannotUnloadAppDomainException: Exception is thrown when an attempt to unload an application domain fails
System.ContextMarshallException: Exception is thrown when an attempt to marshall an object across a context boundary fails
System.TypeLoadException: Exception is thrown when type loading failure occurs.
1. System.DllNotFoundException: thrown when a DLL specified in a DLL import cannot be found
2. System.EntryPointNotFoundException: thrown when an attempt to load a class fails due to the absence of an entry method
System.ExecutionEngineException: Exception is thrown when there is an internal error in the execution engine of the CLR. This class cannot be inherited.
System.MemberAccessException: Exception is thrown when an attempt to access a class member fails
1. System.FieldAccess: thrown when there is an invalid attempt to access a private or protected field inside a class
2. System.MethodAccess: thrown when there is an invalid attempt to access a private or protected method inside a class
3. System.MissingMember: thrown when there is an attempt to dynamically access a class member that doe not exist:
1. System.MissingFieldException: thrown when there is an attempt to dynamically access a field that does not exist
2. System.MissingMethodException: thrown when there is an attempt to dynamically access a method that does not exist
System.FormatException: Exception is thrown when the format of an argument does not meet the parameter specification of the invoked method.
1. System.Net.CookieException: thrown when an error is made adding a cookie to a cookie container
2. System.Reflection.CustomAttributeFormat: thrown when the binary format of a custom attribute is invalid
3. System.UriFormateException: thrown when an invalid Uniform Resource Identifier (URI) is detected
System.IndexOutOfRangeException: Exception is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. This class cannot be inherited
System.InvalidCastException: Exception is thrown for invalid casting or explicit conversion
System.InvalidOperationException: Exception is thrown when a method call is invalid for the objects current state.
1. System.Net.ProtocolCiolation: thrown when an error is made while using a network protocol
2. System.Net.WebException: thrown when an error occurs while accessing the network through a pluggable protocol
3. System.ObjectDisposed: thrown when an operation is performed on a disposed object
System.InvalidProgramException: Exception is thrown when a program contains invalid MSIL or metadata. Generally this indicates a bug in the compiler that generated the program
System.MultiCastNotSupportedException: Exception is thrown when there is an attempt to combine two instances of a non-combinable delegate type unless one of the operands is a null reference. This class cannot be inherited.
System.NotImplementedException: Exception is thrown when a requested method or operation is not implemented
System.NotSupportedException: Exception is thrown when an invoked method is not supported or when there is an attempt to read, seek or write to a stream that does not support the invoked functionality.
1. System.PlatformNotSupported: Exception is thrown when a feature does not run on a particular platform
System.NullReferenceException: Exception is thrown when there is an attempt to dereference a null object reference
System.OutOfMemoryException: Exception is thrown when there is not enough memory to continue the execution of a program
System.RankException: Exception is thrown when an array with the wrong number of dimensions is passed to a method
System.StackOverflowException: Exception is thrown when the execution stack overflows by having too many pending method calls. This class cannot be inherited
System.TypeInitializationException: Exception is thrown as a wrapper around the exception thrown by the class initializer. This class cannot be inherited
System.TypeUnloadedException: Exception is thrown when there is an attempt to access an unloaded class
System.UnauthrorizedAccessException: Exception is thrown when the operating system denies access because of an I/O error or a specific type of security error
System.IO.IOException: Exception is thrown when an I/O error occurs
1. System.IO.DirectoryNotFound: thrown when part of a file or directory cannot be found
2. System.IO.EndOFStream:thrown when reading is attempted past the end of a stream
3. System.IO.FileLoad: thrown when a managed assembly is found but cannot be loaded
4. System.IO.FileNotFound: thrown when an attempt to access a file that does not exist on disk fails
5. System.IO.PathTooLong: thrown when a pathname or filename is longer than the System-defined maximum length
source: http://www.dotnetspider.com/resources/668-Exceptions-e-framework.aspx
Today was the worst day of my life at work.
I created one MSMQ installation manual with the use of Qset as shareware inside.
I share this installation document out of goodwill with my so-called collegues.
Then out of the blue, the MO shout an email say my manual is using unlicensed software Qset then he goes around forward to everyone in the email to my atonishment.
This software I found from the Internet. It is mainly for ease of creating private queues in windows 2003 that I suggested this in the installation guide because in windows 2003 , there is no simple way of creating queues. After installation on the server, it is clearly understooded that he should remove the evaluation software.
Then after this he shoot another email say I install firefox portable on His database server. Knowing perfectly well he is a DBA, and has easy access to all the database server, he "conveniently" provide a screenshot say I install the firefox on His db server, which I did not.
Every Tom *** and Harry out there knows that firefox is free. His so called unlicensed software is because firefox enable us developers to break His so-called hardening security and he is mad about it and cannot do anything about it. Even the internet option to change the internet proxy was disable in Internet explorer.
We only use firefox to check our URGENT production emails and fix problems BY finding solutions through Google. Deny us of internet access means reducing our productivity.
His so-called PARANOID security is going way too much that I cannot take it that I voice out even if we don't have internet access, USB thumb drives when plugged into servers will still spread virus....I am sure everyone knows that as an IT personnel.
A server is like a house. If you lock down the gate and throw away the key, how are you going to leave the house, may i ask?
There are limits to security and the level of lockdown that can be customised so much so that productivity is not affected.