Exception Hierarchy

The following table lists the classes derived from System.Exception .

Class Description
Microsoft.Build.BuildEngine.InternalLoggerException This exception is used to wrap an unhandled exception from a logger.
Microsoft.Build.BuildEngine.InvalidProjectFileException This exception is thrown whenever there is a problem with the user's XML project file. The problem might be semantic or syntactical. If the problem is in the syntax, it can typically be caught by XSD validation.
Microsoft.Build.Framework.LoggerException Allows a logger to force the build to stop in an explicit way.
Microsoft.VisualBasic.ApplicationServices.CantStartSingleInstanceException This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance.
Microsoft.VisualBasic.ApplicationServices.NoStartupFormException This exception is thrown by the Visual Basic Application Model when the MainForm property has not been set.
Microsoft.VisualBasic.CompilerServices.IncompleteInitialization The Visual Basic compiler uses this class during static local initialization; it is not meant to be called directly from your code. An exception of this type is thrown if a static local variable fails to initialize.
Microsoft.VisualBasic.FileIO.MalformedLineException The exception that is thrown when the ReadFields method cannot parse a row using the specified format.
Microsoft.WindowsMobile.DirectX.DirectXException The exception that is thrown by Windows Mobile DirectX for Managed Code applications.
System.ApplicationException The exception that is thrown when a non-fatal application error occurs.
System.ComponentModel.Design.ExceptionCollection Represents the collection of exceptions.
System.Configuration.Provider.ProviderException The exception that is thrown when a configuration provider error has occurred. This exception class is also used by providers to throw exceptions when internal errors occur within the provider that do not map to other pre-existing exception classes.
System.Configuration.SettingsPropertyIsReadOnlyException Provides an exception for read-only SettingsProperty objects.
System.Configuration.SettingsPropertyNotFoundException Provides an exception for SettingsProperty objects that are not found.
System.Configuration.SettingsPropertyWrongTypeException Provides an exception that is thrown when an invalid type is used with a SettingsProperty object.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException The ActiveDirectoryObjectExistsException class exception is thrown when an Active Directory object is created and that object already exists in the underlying directory store.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException The ActiveDirectoryObjectNotFoundException class exception is thrown when a requested object is not found in the underlying directory store.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException The ActiveDirectoryOperationException class exception is thrown when an underlying directory operation fails.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException The ActiveDirectoryServerDownException class exception is thrown when a server is unavailable to respond to a service request.
System.DirectoryServices.Protocols.DirectoryException The DirectoryException class is an abstract class used as the base class for all System.DirectoryServices.Protocols exceptions.
System.IO.IsolatedStorage.IsolatedStorageException The exception that is thrown when an operation in isolated storage fails.
System.Net.Mail.SmtpException Represents the exception that is thrown when the SmtpClient is not able to complete a Send or SendAsync operation.
System.Runtime.CompilerServices.RuntimeWrappedException Wraps an exception that does not derive from the Exception class. This class cannot be inherited.
System.Runtime.Remoting.MetadataServices.SUDSGeneratorException The exception that is thrown if an error occurs during the generation of Web Services Description Language (WSDL).
System.Runtime.Remoting.MetadataServices.SUDSParserException The exception that is thrown if an error occurs during parsing of the Web Services Description Language (WSDL).
System.SystemException Defines the base class for predefined exceptions in the System namespace.
System.Web.Security.MembershipCreateUserException The exception that is thrown when a user is not successfully created by a membership provider.
System.Web.Security.MembershipPasswordException The exception that is thrown when a password cannot be retrieved from the password store.
System.Web.UI.ViewStateException Represents the exception that is thrown when the view state cannot be loaded or validated. This class cannot be inherited.
System.Windows.Forms.AxHost.InvalidActiveXStateException The exception that is thrown when the ActiveX control is referenced while in an invalid state.

Community Additions

© 2015 Microsoft