Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Hitting CTRL+ALT+E in Visual Studio, gives you a list of Common Language Runtime Exceptions. I parsed the list using ShareX's "Text Capture" tool. To help spot typos (from the "Text Capture" tool) and missing exceptions, I pasted them into a blank Visual Studio C# Console App project file as so:
- class Program {
- static void Foo<T>() { }
- static void Main() {
- Foo< System.AccessViolationExample >();
- // The rest of the list, with "Foo< " prefixing and " >();" suffixing each line
- }
- }*/
- // Common Language Runtime Exceptions from Visual Studio 2017
- Microsoft.JScript.JScriptException
- System.AccessViolationException
- System.AggregateException
- System.AppDomainUnloadedException
- System.ApplicationException
- System.ArgumentException
- System.ArgumentNullException
- System.ArgumentOutOfRangeException
- System.ArithmeticException
- System.ArrayTypeMismatchException
- System.BadImageFormatException
- System.CannotUnloadAppDomainException
- System.Collections.Generic.KeyNotFoundException
- System.ComponentModel.Composition.ChangeRejectedException
- System.ComponentModel.Composition.CompositionContractMismatchException
- System.ComponentModel.Composition.CompositionException
- System.ComponentModel.Composition.ImportCardinalityMismatchException
- System.ComponentModel.Composition.Primitives.ComposablePartException
- System.ComponentModel.DataAnnotations.ValidationException
- System.ComponentModel.Design.CheckoutException
- System.ComponentModel.Design.ExceptionCollection
- System.ComponentModel.Design.Serialization.CodeDomSerializerException
- System.ComponentModel.InvalidEnumArgumentException
- System.ComponentModel.LicenseException
- System.ComponentModel.WarningException
- System.ComponentModel.Win32Exception
- System.Configuration.ConfigurationErrorsException
- System.Configuration.ConfigurationException
- System.Configuration.Install.InstallException
- System.Configuration.Provider.ProviderException
- // System.Configuration.SettingsPropertyCannotBeSetForAnonymousUserException // This seems to have never existed in any .net RTM: http://dotnetcore.de/ClassReference/System.Configuration.aspx
- System.Configuration.SettingsPropertyIsReadOnlyException
- System.Configuration.SettingsPropertyNotFoundException
- System.Configuration.SettingsPropertyWrongTypeException
- System.ContextMarshalException
- System.Data.Common.DbException
- System.Data.ConstraintException
- System.Data.DataException
- System.Data.DBConcurrencyException
- System.Data.DeletedRowInaccessibleException
- System.Data.DuplicateNameException
- System.Data.EvaluateException
- System.Data.InRowChangingEventException
- System.Data.InvalidConstraintException
- System.Data.InvalidExpressionException
- System.Data.Linq.ChangeConflictException
- System.Data.Linq.DuplicateKeyException
- System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException
- System.Data.MissingPrimaryKeyException
- System.Data.NoNullAllowedException
- System.Data.Odbc.OdbcException
- System.Data.OleDb.OleDbException
- System.Data.OperationAbortedException
- System.Data.OracleClient.OracleException
- System.Data.ReadOnlyException
- System.Data.RowNotInTableException
- System.Data.SqlClient.SqlException
- // System.Data.SqlTypes.SqlException // This seems to have never existed. Likely is a bug in Visual Studio. SqlClient.SqlException DOES exist, however.
- System.Data.SqlTypes.SqlNotFilledException
- System.Data.SqlTypes.SqlNullValueException
- System.Data.SqlTypes.SqlTruncateException
- System.Data.SqlTypes.SqlTypeException
- System.Data.StrongTypingException
- System.Data.SyntaxErrorException
- System.Data.TypedDataSetGeneratorException
- System.Data.VersionNotFoundException
- System.DataMisalignedException
- System.Deployment.Application.DependentPlatformMissingException
- System.Deployment.Application.DeploymentDownloadException
- System.Deployment.Application.DeploymentException
- System.Deployment.Application.InvalidDeploymentException
- System.Deployment.Application.TrustNotGrantedException
- System.Diagnostics.Eventing.Reader.EventLogException
- System.Diagnostics.Eventing.Reader.EventLogInvalidDataException
- System.Diagnostics.Eventing.Reader.EventLogNotFoundException
- System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
- System.Diagnostics.Eventing.Reader.EventLogReadingException
- System.DirectoryServices.AccountManagement.MultipleMatchesException
- System.DirectoryServices.AccountManagement.NoMatchingPrincipalException
- System.DirectoryServices.AccountManagement.PasswordException
- System.DirectoryServices.AccountManagement.PrincipalException
- System.DirectoryServices.AccountManagement.PrincipalExistsException
- System.DirectoryServices.AccountManagement.PrincipalOperationException
- System.DirectoryServices.AccountManagement.PrincipalServerDownException
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException
- System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException
- System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException
- System.DirectoryServices.DirectoryServicesCOMException
- System.DirectoryServices.Protocols.BerConversionException
- System.DirectoryServices.Protocols.DirectoryException
- System.DirectoryServices.Protocols.DirectoryOperationException
- System.DirectoryServices.Protocols.DsmlInvalidDocumentException
- System.DirectoryServices.Protocols.ErrorResponseException
- System.DirectoryServices.Protocols.LdapException
- System.DirectoryServices.Protocols.TlsOperationException
- System.DivideByZeroException
- System.DllNotFoundException
- System.Drawing.Printing.InvalidPrinterException
- System.DuplicateWaitObjectException
- System.EnterpriseServices.RegistrationException
- System.EnterpriseServices.ServicedComponentException
- System.EntryPointNotFoundException
- System.Exception
- System.ExecutionEngineException
- System.FieldAccessException
- System.FormatException
- System.IdentityModel.Selectors.CardSpaceException
- System.IdentityModel.Selectors.IdentityValidationException
- System.IdentityModel.Selectors.PolicyValidationException
- System.IdentityModel.Selectors.ServiceBusyException
- System.IdentityModel.Selectors.ServiceNotStartedException
- System.IdentityModel.Selectors.StsCommunicationException
- System.IdentityModel.Selectors.UnsupportedPolicyOptionsException
- System.IdentityModel.Selectors.UntrustedRecipientException
- System.IdentityModel.Selectors.UserCancellationException
- System.IdentityModel.Tokens.SecurityTokenException
- System.IdentityModel.Tokens.SecurityTokenValidationException
- System.IndexOutOfRangeException
- System.InsufficientMemoryException
- System.InvalidCastException
- System.InvalidOperationException
- System.InvalidProgramException
- System.InvalidTimeZoneException
- System.IO.DirectoryNotFoundException
- System.IO.DriveNotFoundException
- System.IO.EndOfStreamException
- System.IO.FileFormatException // Note: Needs "WindowsBase" assembly reference
- System.IO.FileLoadException
- System.IO.FileNotFoundException
- System.IO.InternalBufferOverflowException
- System.IO.InvalidDataException
- System.IO.IOException
- System.IO.IsolatedStorage.IsolatedStorageException
- System.IO.Log.ReservationNotFoundException
- System.IO.Log.SequenceFullException
- System.IO.PathTooLongException
- System.IO.PipeException
- // NOTE: System.Management.Automation requires Nuget package: System.Management.Automation_PowerShell_3.0
- System.Management.Automation.ActionPreferenceStopException
- System.Management.Automation.ApplicationFailedException
- System.Management.Automation.ArgumentTransformationMetadataException
- System.Management.Automation.CmdletInvocationException
- System.Management.Automation.CmdletProviderInvocationException
- System.Management.Automation.CommandNotFoundException
- System.Management.Automation.DriveNotFoundException
- System.Management.Automation.ExtendedTypeSystemException
- System.Management.Automation.GetValueException
- System.Management.Automation.GetValueInvocationException
- System.Management.Automation.HaltCommandException
- System.Management.Automation.Host.HostException
- System.Management.Automation.Host.PromptingException
- System.Management.Automation.IncompleteParseException
- System.Management.Automation.ItemNotFoundException
- System.Management.Automation.MetadataException
- System.Management.Automation.MethodException
- System.Management.Automation.MethodInvocationException
- System.Management.Automation.ParameterBindingException
- System.Management.Automation.ParentContainsErrorRecordException
- System.Management.Automation.ParseException
- System.Management.Automation.ParsingMetadataException
- System.Management.Automation.PipelineClosedException
- System.Management.Automation.PipelineStoppedException
- System.Management.Automation.ProviderInvocationException
- System.Management.Automation.ProviderNameAmbiguousException
- System.Management.Automation.ProviderNotFoundException
- System.Management.Automation.PSArgumentException
- System.Management.Automation.PSArgumentNullException
- System.Management.Automation.PSArgumentOutOfRangeException
- System.Management.Automation.PSInvalidCastException
- System.Management.Automation.PSInvalidOperationException
- System.Management.Automation.PSNotImplementedException
- System.Management.Automation.PSNotSupportedException
- System.Management.Automation.PSObjectDisposedException
- System.Management.Automation.PSSecurityException
- System.Management.Automation.RedirectedException
- System.Management.Automation.RemoteException
- System.Management.Automation.Runspaces.InvalidPipelineStateException
- System.Management.Automation.Runspaces.InvalidRunspaceStateException
- System.Management.Automation.Runspaces.PSConsoleLoadException
- System.Management.Automation.Runspaces.PSSnapInException
- System.Management.Automation.Runspaces.RunspaceConfigurationAttributeException
- System.Management.Automation.Runspaces.RunspaceConfigurationTypeException
- System.Management.Automation.RuntimeException
- System.Management.Automation.ScriptCallDepthException
- System.Management.Automation.ScriptRequiresException
- System.Management.Automation.SessionStateException
- System.Management.Automation.SessionStateOverflowException
- System.Management.Automation.SessionStateUnauthorizedAccessException
- System.Management.Automation.SetValueException
- System.Management.Automation.SetValueInvocationException
- System.Management.Automation.ValidationMetadataException
- System.Management.Automation.WildcardPatternException
- // NOTE: System.Management.Automation requires Nuget package: System.Management.Automation_PowerShell_3.0
- System.Management.Instrumentation.InstanceNotFoundException
- System.Management.Instrumentation.WmiProviderInstallationException
- System.Management.Instrumentation.InstrumentationBaseException
- System.Management.Instrumentation.InstrumentationException
- System.Management.ManagementException
- System.MemberAccessException
- System.Messaging.MessageQueueException
- System.MethodAccessException
- System.MissingFieldException
- System.MissingMemberException
- System.MissingMethodException
- System.MulticastNotSupportedException
- System.Net.CookieException
- System.Net.HttpListenerException
- System.Net.Mail.SmtpException
- System.Net.Mail.SmtpFailedRecipientException
- System.Net.Mail.SmtpFailedRecipientsException
- System.Net.NetworkInformation.NetworkInformationException
- System.Net.NetworkInformation.PingException
- System.Net.PeerToPeer.PeerToPeerException
- System.Net.ProtocolViolationException
- System.Net.Sockets.SocketException
- System.Net.WebException
- // System.NotCancelableException // Assembly reference is unknown, or cannot be accessed
- System.NotFiniteNumberException
- System.NotImplementedException
- System.NotSupportedException
- System.NullReferenceException
- System.ObjectDisposedException
- System.OperationCanceledException
- System.OutOfMemoryException
- System.OverflowException
- System.PlatformNotSupportedException
- System.Printing.PrintCommitAttributesException
- System.Printing.PrintingCanceledException
- System.Printing.PrintJobException
- System.Printing.PrintQueueException
- System.Printing.PrintServerException
- System.Printing.PrintSystemException
- System.RankException
- System.Reflection.AmbiguousMatchException
- System.Reflection.InvalidFilterCriteriaException
- // System.Reflection.MissingMetadataException // Assembly reference is unknown, or cannot be accessed
- // System.Reflection.MissingRuntimeArtifactException // Assembly reference is unknown, or cannot be accessed
- System.Reflection.ReflectionTypeLoadException
- System.Reflection.TargetException
- System.Reflection.TargetInvocationException
- System.Reflection.TargetParameterCountException
- System.Resources.MissingManifestResourceException
- System.Resources.MissingSatelliteAssemblyException
- System.Runtime.InteropServices.COMException
- // System.Runtime.InteropServices.ComObjectInUseException // Assembly reference is unknown, or cannot be accessed
- System.Runtime.InteropServices.ExternalException
- System.Runtime.InteropServices.InvalidComObjectException
- System.Runtime.InteropServices.InvalidOleVariantTypeException
- System.Runtime.InteropServices.MarshalDirectiveException
- System.Runtime.InteropServices.SafeArrayRankMismatchException
- System.Runtime.InteropServices.SafeArrayTypeMismatchException
- System.Runtime.InteropServices.SEHException
- System.Runtime.Remoting.MetadataServices.SUDSGeneratorException
- System.Runtime.Remoting.MetadataServices.SUDSParserException
- System.Runtime.Remoting.RemotingException
- System.Runtime.Remoting.RemotingTimeoutException
- System.Runtime.Remoting.ServerException
- System.Runtime.Serialization.InvalidDataContractException
- System.Runtime.Serialization.SerializationException
- System.Security.AccessControl.PrivilegeNotHeldException
- System.Security.Authentication.AuthenticationException
- System.Security.Authentication.InvalidCredentialException
- System.Security.Cryptography.CryptographicException
- System.Security.Cryptography.CryptographicUnexpectedOperationException
- System.Security.HostProtectionException
- System.Security.Policy.PolicyException
- System.Security.Principal.IdentityNotMappedException
- System.Security.RightsManagement.RightsManagementException
- System.Security.SecurityException
- System.Security.VerificationException
- System.Security.XmlSyntaxException
- System.ServiceModel.ActionNotSupportedException
- System.ServiceModel.AddressAccessDeniedException
- System.ServiceModel.AddressAlreadyInUseException
- System.ServiceModel.Channels.InvalidChannelBindingException
- // System.ServiceModel.Channels.PnrpPeerResolver+PnrpException // Seems to be an internal exception, but base of PnrpException is SocketException
- System.ServiceModel.ChannelTerminatedException
- System.ServiceModel.CommunicationException
- System.ServiceModel.CommunicationObjectAbortedException
- System.ServiceModel.CommunicationObjectFaultedException
- System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException
- System.ServiceModel.Dispatcher.InvalidBodyAccessException
- System.ServiceModel.Dispatcher.MessageFilterException
- System.ServiceModel.Dispatcher.MultipleFilterMatchesException
- System.ServiceModel.Dispatcher.NavigatorInvalidBodyAccessException
- System.ServiceModel.Dispatcher.XPathNavigatorException
- System.ServiceModel.EndpointNotFoundException
- System.ServiceModel.FaultException
- System.ServiceModel.FaultException
- System.ServiceModel.InvalidMessageContractException
- System.ServiceModel.MessageHeaderException
- System.ServiceModel.MsmqException
- System.ServiceModel.MsmqPoisonMessageException
- System.ServiceModel.PoisonMessageException
- System.ServiceModel.ProtocolException
- System.ServiceModel.QuotaExceededException
- System.ServiceModel.Security.ExpiredSecurityTokenException
- System.ServiceModel.Security.MessageSecurityException
- System.ServiceModel.Security.SecurityAccessDeniedException
- System.ServiceModel.Security.SecurityNegotiationException
- System.ServiceModel.ServerTooBusyException
- System.ServiceModel.ServiceActivationException
- System.ServiceProcess.TimeoutException
- System.StackOverflowException
- System.SystemException
- System.Text.DecoderFallbackException
- System.Text.EncoderFallbackException
- System.Threading.AbandonedMutexException
- System.Threading.LockRecursionException
- System.Threading.SemaphoreFullException
- System.Threading.SynchronizationLockException
- System.Threading.Tasks.TaskCanceledException
- System.Threading.ThreadAbortException
- System.Threading.ThreadInterruptedException
- System.Threading.ThreadStartException
- System.Threading.ThreadStateException
- System.Threading.WaitHandleCannotBeOpenedException
- System.TimeoutException
- System.TimeZoneNotFoundException
- System.Transactions.TransactionAbortedException
- System.Transactions.TransactionException
- System.Transactions.TransactionInDoubtException
- System.Transactions.TransactionManagerCommunicationException
- System.Transactions.TransactionPromotionException
- System.TypeAccessException
- System.TypeInitializationException
- System.TypeLoadException
- System.TypeUnloadedException
- System.UnauthorizedAccessException
- System.UriFormatException
- System.Web.Caching.DatabaseNotEnabledForNotificationException
- System.Web.Caching.TableNotEnabledForNotificationException
- System.Web.HttpCompileException
- System.Web.HttpException
- System.Web.HttpParseException
- System.Web.HttpRequestValidationException
- System.Web.HttpUnhandledException
- System.Web.Management.SqlExecutionException
- System.Web.Security.MembershipCreateUserException
- System.Web.Security.MembershipPasswordException
- System.Web.Services.Protocols.SoapException
- System.Web.Services.Protocols.SoapHeaderException
- System.Web.UI.ViewStateException
- System.Windows.Automation.ElementNotAvailableException
- System.Windows.Automation.ElementNotEnabledException
- System.Windows.Automation.NoClickablePointException
- System.Windows.Automation.ProxyAssemblyNotLoadedException
- System.Windows.Controls.PrintDialogException
- System.Windows.Forms.AxHost.InvalidActiveXStateException
- System.Windows.Markup.XamlParseException
- System.Windows.Media.Animation.AnimationException
- System.Windows.Media.InvalidWmpVersionException
- System.Windows.ResourceReferenceKeyNotFoundException
- System.Windows.Xps.XpsException
- System.Windows.Xps.XpsPackagingException
- System.Windows.Xps.XpsSerializationException
- System.Windows.Xps.XpsWriterException
- System.Workflow.Activities.EventDeliveryFailedException
- System.Workflow.Activities.Rules.RuleEvaluationException
- System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
- System.Workflow.Activities.Rules.RuleException
- System.Workflow.Activities.Rules.RuleSetValidationException
- System.Workflow.Activities.WorkflowAuthorizationException
- System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException
- System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationException
- System.Workflow.ComponentModel.WorkflowTerminatedException
- System.Workflow.Runtime.Hosting.PersistenceException
- System.Workflow.Runtime.Tracking.TrackingProfileDeserializationException
- System.Workflow.Runtime.WorkflowOwnershipException
- System.Xml.Schema.XmlSchemaException
- System.Xml.Schema.XmlSchemaInferenceException
- System.Xml.Schema.XmlSchemaValidationException
- System.Xml.XmlException
- System.Xml.XPath.XPathException
- System.Xml.Xsl.XsltCompileException
- System.Xml.Xsl.XsltException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement