system.exception所有子类详解

一直以来写代码抛出的异常都用的exception,从来没有像书上教的那样具体可能是啥异常就抛对应的异常可怜,最后才说用的exception异常类抛异常安静。前段时间整理代码的时候突然感觉好像从来也就没有对异常做过啥具体的了解呢尴尬,于是心血来潮的就整理了下异常类和它对应的作用。(虽然以后写代码估计还是不用的可怜)ok了,不那么多废话了,把整理的东东放出来!


继承关系(概要)

System.Object

  System.Exception

         System.SystemException

             Microsoft.SqlServer.Server.InvalidUdtException

System.AccessViolationException

System.Activities.ValidationException

System.AppDomainUnloadedException

System.ArgumentException

System.ArithmeticException

System.ArrayTypeMismatchException

System.BadImageFormatException

System.CannotUnloadAppDomainException

System.Collections.Generic.KeyNotFoundException

System.ComponentModel.Design.Serialization.CodeDomSerializerException

System.ComponentModel.LicenseException

System.ComponentModel.WarningException

System.Configuration.ConfigurationException

System.Configuration.Install.InstallException

System.ContextMarshalException

System.Data.DataException

System.Data.DBConcurrencyException

System.Data.OperationAbortedException

System.Data.SqlTypes.SqlTypeException

        System.Data.SqlTypes.SqlAlreadyFilledException

    System.Data.SqlTypes.SqlNotFilledException

    System.Data.SqlTypes.SqlNullValueException

    System.Data.SqlTypes.SqlTruncateException

System.DataMisalignedException

System.Deployment.Application.DeploymentException

          System.Deployment.Application.DependentPlatformMissingException

      System.Deployment.Application.DeploymentDownloadException

      System.Deployment.Application.InvalidDeploymentException

      System.Deployment.Application.TrustNotGrantedException

System.DirectoryServices.AccountManagement.PrincipalException

         System.DirectoryServices.AccountManagement.MultipleMatchesException

System.DirectoryServices.AccountManagement.NoMatchingPrincipalException

    System.DirectoryServices.AccountManagement.PasswordException

    System.DirectoryServices.AccountManagement.PrincipalExistsException

    System.DirectoryServices.AccountManagement.PrincipalOperationException

System.DirectoryServices.AccountManagement.PrincipalServerDownException

System.Drawing.Printing.InvalidPrinterException

System.EnterpriseServices.RegistrationException

System.EnterpriseServices.ServicedComponentException

System.ExecutionEngineException

System.FormatException

         System.IdentityModel.SignatureVerificationFailedException

    System.IdentityModel.Tokens.EncryptedTokenDecryptionFailedException

    System.IdentityModel.Tokens.SecurityTokenValidationException

System.IdentityModel.LimitExceededException

System.IdentityModel.SecurityMessageSerializationException

System.IdentityModel.Tokens.SecurityTokenException

         System.IdentityModel.SignatureVerificationFailedException

    System.IdentityModel.Tokens.EncryptedTokenDecryptionFailedException

    System.IdentityModel.Tokens.SecurityTokenValidationException

System.IndexOutOfRangeException

System.InsufficientExecutionStackException

System.InvalidCastException

System.InvalidOperationException

System.Data.Linq.DuplicateKeyException

    System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException

    System.Data.Services.Client.DataServiceClientException

    System.Data.Services.Client.DataServiceQueryException

    System.Data.Services.Client.DataServiceRequestException

    System.Data.Services.DataServiceException

    System.Net.NetworkInformation.PingException

    System.Net.ProtocolViolationException

    System.Net.WebException

    System.ObjectDisposedException

    System.Windows.Automation.ElementNotEnabledException

    System.Windows.ResourceReferenceKeyNotFoundException

System.InvalidProgramException

System.IO.InternalBufferOverflowException

System.IO.InvalidDataException

System.IO.IOException

System.IO.DirectoryNotFoundException

    System.IO.DriveNotFoundException

    System.IO.EndOfStreamException

    System.IO.FileLoadException

    System.IO.FileNotFoundException

    System.IO.PathTooLongException

    System.IO.PipeException

System.Management.ManagementException

System.MemberAccessException

         System.FieldAccessException

    System.MethodAccessException

    System.MissingMemberException

System.MulticastNotSupportedException

System.NotImplementedException

System.NotSupportedException

         System.PlatformNotSupportedException

System.NullReferenceException

System.OperationCanceledException

         System.Threading.Tasks.TaskCanceledException

System.OutOfMemoryException

         System.InsufficientMemoryException

System.Printing.PrintSystemException

         System.Printing.PrintCommitAttributesException

        System.Printing.PrintingNotSupportedException

        System.Printing.PrintJobException

       System.Printing.PrintQueueException

    System.Printing.PrintServerException

System.RankException

System.Reflection.AmbiguousMatchException

System.Reflection.ReflectionTypeLoadException

System.Resources.MissingManifestResourceException

System.Resources.MissingSatelliteAssemblyException

System.Runtime.InteropServices.ExternalException

         Microsoft.JScript.Vsa.JSVsaException

    System.ComponentModel.Design.CheckoutException

    System.ComponentModel.Win32Exception

    System.Data.Common.DbException

                 System.Data.Odbc.OdbcException

        System.Data.OleDb.OleDbException

        System.Data.OracleClient.OracleException

        System.Data.SqlClient.SqlException

    System.Messaging.MessageQueueException

    System.Runtime.InteropServices.COMException

                   System.DirectoryServices.DirectoryServicesCOMException

    System.Runtime.InteropServices.SEHException

    System.ServiceModel.MsmqException

    System.Web.HttpException

System.Runtime.InteropServices.InvalidComObjectException

System.Runtime.InteropServices.InvalidOleVariantTypeException

System.Runtime.InteropServices.MarshalDirectiveException

System.Runtime.InteropServices.SafeArrayRankMismatchException

System.Runtime.InteropServices.SafeArrayTypeMismatchException

System.Runtime.Remoting.RemotingException

         System.Runtime.Remoting.RemotingTimeoutException

System.Runtime.Remoting.ServerException

System.Runtime.Serialization.SerializationException

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.SecurityException

System.Security.VerificationException

System.Security.XmlSyntaxException

System.ServiceModel.CommunicationException

         System.ServiceModel.ActionNotSupportedException

    System.ServiceModel.AddressAccessDeniedException

    System.ServiceModel.AddressAlreadyInUseException

    System.ServiceModel.Channels.RedirectionException

    System.ServiceModel.Channels.RetryException

    System.ServiceModel.ChannelTerminatedException

    System.ServiceModel.CommunicationObjectAbortedException

    System.ServiceModel.CommunicationObjectFaultedException

    System.ServiceModel.Dispatcher.MessageFilterException

    System.ServiceModel.EndpointNotFoundException

    System.ServiceModel.FaultException

    System.ServiceModel.Persistence.PersistenceException

    System.ServiceModel.PoisonMessageException

    System.ServiceModel.ProtocolException

    System.ServiceModel.Security.MessageSecurityException

                   System.ServiceModel.Security.ExpiredSecurityTokenException

    System.ServiceModel.Security.SecurityAccessDeniedException

    System.ServiceModel.Security.SecurityNegotiationException

    System.ServiceModel.ServerTooBusyException

    System.ServiceModel.ServiceActivationException

System.ServiceModel.Dispatcher.InvalidBodyAccessException

System.ServiceModel.Dispatcher.MultipleFilterMatchesException

System.ServiceModel.InvalidMessageContractException

System.ServiceModel.QuotaExceededException

System.ServiceProcess.TimeoutException

System.StackOverflowException

System.Threading.AbandonedMutexException

System.Threading.SemaphoreFullException

System.Threading.SynchronizationLockException

System.Threading.ThreadAbortException

System.Threading.ThreadInterruptedException

System.Threading.ThreadStartException

System.Threading.ThreadStateException

System.TimeoutException

         System.Text.RegularExpressions.RegexMatchTimeoutException

System.Transactions.TransactionException

         System.Transactions.TransactionAbortedException

    System.Transactions.TransactionInDoubtException

    System.Transactions.TransactionManagerCommunicationException

    System.Transactions.TransactionPromotionException

System.TypeInitializationException

System.TypeLoadException

         System.DllNotFoundException

    System.EntryPointNotFoundException

    System.TypeAccessException

System.TypeUnloadedException

System.UnauthorizedAccessException

         System.Security.AccessControl.PrivilegeNotHeldException

System.UriTemplateMatchException

System.Web.Caching.DatabaseNotEnabledForNotificationException

System.Web.Caching.TableNotEnabledForNotificationException

System.Web.Management.SqlExecutionException

System.Web.Services.Protocols.SoapException

         System.Web.Services.Protocols.SoapHeaderException

System.Windows.Automation.ElementNotAvailableException

System.Windows.Data.ValueUnavailableException

System.Windows.Markup.XamlParseException

System.Windows.Media.Animation.AnimationException

System.Windows.Media.InvalidWmpVersionException

System.Workflow.Activities.EventDeliveryFailedException

System.Workflow.Activities.WorkflowAuthorizationException

System.Workflow.Runtime.Hosting.PersistenceException

System.Workflow.Runtime.Tracking.TrackingProfileDeserializationException

System.Xml.Schema.XmlSchemaException

         System.Xml.Schema.XmlSchemaInferenceException

    System.Xml.Schema.XmlSchemaValidationException

System.Xml.XmlException

System.Xml.XPath.XPathException

         System.ServiceModel.Dispatcher.XPathNavigatorException

System.Xml.Xsl.XsltException

         System.Xml.Xsl.XsltCompileException

 

详细说明

 

Microsoft.SqlServer.Server.InvalidUdtException(当SQL Server 或ADO.NET 的System.Data.SqlClient程序提供者检测到无效的用户定义类型 (UDT)引发的异常)

System.AccessViolationException(在试图读写受保护内存时引发的异常)

System.Activities.ValidationException(当工作流或活动处于无效状态时引发的异常)

System.AppDomainUnloadedException(当尝试访问已卸载的应用程序域时引发的异常)

System.ArgumentException(当向方法提供的参数之一无效时引发的异常)

System.ArithmeticException(当算术、强制转换或转换操作发生错误时引发的异常)

System.ArrayTypeMismatchException(当尝试在数组内存储错误类型的元素时引发的异常)

System.BadImageFormatException(当动态链接库 (DLL) 或可执行程序的文件映像无效时引发的异常)

System.CannotUnloadAppDomainException(当尝试卸载应用程序域失败时引发的异常)

System.Collections.Generic.KeyNotFoundException(当指定用于访问集合中元素的键与集合中的任意键均不匹配时所引发的异常)

System.ComponentModel.Design.Serialization.CodeDomSerializerException(行号信息可供序列化错误时引发的异常)

System.ComponentModel.LicenseException(表示当无法授予组件许可证时引发的异常)

System.ComponentModel.WarningException(指定作为警告而不是错误处理的异常)

System.Configuration.ConfigurationException(发生配置系统错误时引发的异常)

System.Configuration.Install.InstallException(在安装的提交、回滚或卸载阶段发生错误时引发的异常)

System.ContextMarshalException(在尝试跨上下文边界封送对象失败时引发的异常)

System.Data.DataException(表示使用 ADO.NET 组件生成的错误时引发的异常)

System.Data.DBConcurrencyException(当 DataAdapter插入、 更新或删除操作期间,如果受影响的行数等于零引发的异常)

System.Data.OperationAbortedException(当用户中止正在进行的操作时,引发此异常)

System.Data.SqlTypes.SqlTypeException

         System.Data.SqlTypes.SqlAlreadyFilledException(此类不适用于作为独立的组件,而应用作其他类从中派生标准功能的类)

    System.Data.SqlTypes.SqlNotFilledException(设置一个值到System.Data.SqlTypes结构时会引发异常截断该值)

    System.Data.SqlTypes.SqlNullValueException(当System.Data.SqlTypes的Value属性设置为 null 时所引发的异常)

    System.Data.SqlTypes.SqlTruncateException(当设置一个值到System.Data.SqlTypes结构时会引发异常截断该值)

System.DataMisalignedException(当在某个地址读取或写入一个单元的数据,但该地址的数据大小不是该数据单元的整数倍时引发的异常。此类不能被继承)

System.Deployment.Application.DeploymentException()

         System.Deployment.Application.DependentPlatformMissingException(在激活的ClickOnce 部署和部署过程中找不到平台依赖项时引发的异常,此部署将不会继续运行)

    System.Deployment.Application.DeploymentDownloadException(指示了错误下载ClickOnce 清单或者部署文件复制到客户端计算机)

    System.Deployment.Application.InvalidDeploymentException(指示 ClickOnce 无法读取部署或应用程序清单)

    System.Deployment.Application.TrustNotGrantedException(指示应用程序不具有适当的信任级别以便在本地计算机上运行)

System.DirectoryServices.AccountManagement.PrincipalException()

System.DirectoryServices.AccountManagement.MultipleMatchesException(当有多个搜索查询匹配项时,方法期望匹配单个主体对象而引发此异常)

System.DirectoryServices.AccountManagement.NoMatchingPrincipalException(没有找到匹配的主体对象作为指定参数时引发此异常)

System.DirectoryServices.AccountManagement.PasswordException(密码不符合复杂性要求时引发此异常)

System.DirectoryServices.AccountManagement.PrincipalExistsException(1、用System.DirectoryServices.AccountManagement.PrincipalCollection.Add方法尝试插入的主体中已存在于集合中会引发此异常;2、用System.DirectoryServices.AccountManagement.Principal.Save方法尝试保存新的主体在存储区中已存在时引发此异常)

System.DirectoryServices.AccountManagement.PrincipalOperationException(当 ADSI 返回一个操作以更新存储过程中出错时引发)

System.DirectoryServices.AccountManagement.PrincipalServerDownException(当API不能连接到服务器时引发此异常)

System.Drawing.Printing.InvalidPrinterException(表示当您尝试使用无效的打印机设置访问打印机时引发的异常)

System.EnterpriseServices.RegistrationException(检测到注册错误时所引发的异常)

System.EnterpriseServices.ServicedComponentException(在已维护的组件中检测到错误时引发的异常)

System.ExecutionEngineException(当公共语言运行时的执行引擎中存在内部错误时引发的异常。 此类不能被继承)

System.FormatException(当参数的格式无效或复合格式字符串的格式不标准时引发的异常)

System.IO.FileFormatException(输入的文件或应符合某种文件格式规范的数据流的格式不正确时,将引发异常)

    System.Net.CookieException(向CookieContainer 添加 Cookie 出错时引发的异常)

    System.Reflection.CustomAttributeFormatException(当自定义特性的二进制格式化无效时引发的异常)

    System.UriFormatException(当检测到无效的统一资源标识符 (URI) 时引发的异常)

System.IdentityModel.LimitExceededException(当超出了配置的限制或配额时引发的异)

System.IdentityModel.SecurityMessageSerializationException(在序列化一条安全消息时出现错误时引发的异常)

System.IdentityModel.Tokens.SecurityTokenException(在处理安全令牌的过程中发生问题时引发的异常)

System.IdentityModel.SignatureVerificationFailedException(当处理一个签名过程中发生错误时引发的异常)

System.IdentityModel.Tokens.EncryptedTokenDecryptionFailedException(处理加密的安全令牌的过程中发生错误时引发的异常)

    System.IdentityModel.Tokens.SecurityTokenValidationException(接收到的安全令牌无效时引发的异常)

System.IndexOutOfRangeException(试图访问索引超出界限的数组或集合的元素时引发的异常)

System.InsufficientExecutionStackException(当存在的执行堆栈不足以允许大多数方法执行时引发的异常)

System.InvalidCastException(当执行了无效的强制转换或显式转换时引发的异常)

System.InvalidOperationException(当方法调用对于对象的当前状态无效时引发的异常)

         System.Data.Linq.DuplicateKeyException(当尝试使用已被使用的密钥将对象添加到标识缓存时引发)

System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(表示尝试在已加载实体时更改外键时出现的错误)

System.Data.Services.Client.DataServiceClientException(表示在执行 WCF 数据服务客户端应用程序过程中发生的错误)

System.Data.Services.Client.DataServiceQueryException(指示从数据服务加载属性值时出错的异常)

System.Data.Services.Client.DataServiceRequestException(表示在数据服务返回的响应代码小于 200 或大于 299 或者响应中的顶级元素为 <error> 时引发的错误。此类不能被继承)

System.Data.Services.DataServiceException(表示实例DataServiceException 类具有指定的描述错误的消息)

System.Net.NetworkInformation.PingException(当 Send 或 SendAsync 方法调用的方法引发异常时引发的异常)

System.Net.ProtocolViolationException(使用网络协议期间出错时引发的异常)

System.Net.WebException(通过可插入协议访问网络期间发生错误时引发的异常)

System.ObjectDisposedException(对已释放的对象执行操作时所引发的异常)

System.Windows.Automation.ElementNotEnabledException(包含有关尝试操作未启用的控件时,将引发异常的信息)

System.Windows.ResourceReferenceKeyNotFoundException(当在分析或序列化标记扩展资源期间找不到资源引用键时引发的异常。)

System.InvalidProgramException(当程序包含无效的Microsoft 中间语言 (MSIL) 或元数据时引发的异常。这通常表示生成该程序的编译器中存在 bug)

System.IO.InternalBufferOverflowException(内部缓冲区溢出时引发的异常)

System.IO.InvalidDataException(数据流格式无效时引发的异常)

System.IO.IOException (发生 I/O 错误时引发的异常)

System.IO.DirectoryNotFoundException(找不到文件或目录的部件时引发的异常)

    System.IO.DriveNotFoundException(当尝试访问的驱动器或共享不可用时引发的异常)

    System.IO.EndOfStreamException(尝试在流末尾之后读取时引发的异常)

    System.IO.FileLoadException(找到托管程序集但不能加载时引发的异常)

    System.IO.FileNotFoundException(尝试访问磁盘上不存在的文件失败时引发的异常)

    System.IO.PathTooLongException(当路径名或文件名长度超过系统定义的最大长度时引发的异常)

    System.IO.PipeException(当命名管道内出现错误时引发)

System.Management.ManagementException(表示管理异常)

System.MemberAccessException(访问类成员的尝试失败时引发的异常)

         System.FieldAccessException (无效地尝试访问类中的私有或受保护字段时引发的异常)

    System.MethodAccessException(无效地尝试访问方法时(例如从部分信任的代码访问私有方法)引发的异常)

    System.MissingMemberException(当尝试动态访问一个不存或未声明为公共的类成员时引发的异常。 如果类库中的某个成员已移除或重命名,请重新编译引用该库的所有程序集)

System.MulticastNotSupportedException(当尝试组合两个委托时引发的异常基于 Delegate 类型而不是 MulticastDelegate 类型。此类不能被继承)

System.NotImplementedException(在无法实现请求的方法或操作时引发的异常)

System.NotSupportedException(当调用的方法不受支持时,或者当尝试读取、搜索或写入不支持所调用功能的流时引发的异常)

         System.PlatformNotSupportedException(当功能不在特定平台上运行时引发的操作)

System.NullReferenceException(尝试取消引用空对象引用时引发的异常)

System.OperationCanceledException(当线程取消一个正在执行的操作时在线程中引发的异常)

         System.Threading.Tasks.TaskCanceledException(表示一个用于告知任务取消的异常)

System.OutOfMemoryException(没有足够的内存继续执行程序时引发的异常)

         System.InsufficientMemoryException(当检测到没有足够的可用内存时引发的异常)

System.Printing.PrintSystemException(当错误条件阻止访问或创建PrintSystemObject对象时出现的异常)

         System.Printing.PrintCommitAttributesException(当错误条件阻止从PrintSystemObject对象提交的某些属性到实际的计算机、 打印机或该对象表示的设备时引发的异常)

    System.Printing.PrintingNotSupportedException(不支持打印操作时引发的异常)

    System.Printing.PrintJobException(当打印作业无法正常运行时出现异常)

    System.Printing.PrintQueueException(当错误条件阻止访问或创建PrintQueue时引发的异常)

    System.Printing.PrintServerException(当错误条件阻止访问或创建PrintServer时出现的异常)

System.RankException(将具有错误维数的数组传入方法时引发的异常)

System.Reflection.AmbiguousMatchException(当绑定到成员导致多个成员匹配绑定条件时引发的异常。 此类不能被继承)

System.Reflection.ReflectionTypeLoadException(当模块中有任何类无法加载时由 Module.GetTypes 方法引发的异常。此类不能被继承)

System.Resources.MissingManifestResourceException(如果主程序集不包含非特定区域性的资源,并且适当的附属程序集丢失,则引发异常)

System.Resources.MissingSatelliteAssemblyException(缺少默认区域性的资源的附属程序集时引发的异常)

System.Runtime.InteropServices.ExternalException(所有 COM 互操作 异常和结构化异常处理 (SEH) 异常的异常基类型)

         Microsoft.JScript.Vsa.JSVsaException(备注:此 API 现在已过时。此类型支持.NET Framework 基础结构,不能在代码中直接使用。)

    System.ComponentModel.Design.CheckoutException(当签出被签入源代码管理程序的文件的尝试被取消或失败时引发的异常)

    System.ComponentModel.Win32Exception(引发 Win32 错误代码异常)

    System.Data.Common.DbException(代表数据源引发的所有异常的基类)

                   System.Data.Odbc.OdbcException(ODBC数据源返回警告或错误时生成的异常。此类不能被继承)

        System.Data.OleDb.OleDbException(当基础提供程序返回的警告或错误的 OLE DB 数据源时引发异常。此类不能被继承)

        System.Data.OracleClient.OracleException(Oracle数据库或适用于 Oracle 的.NET Framework 数据提供程序返回警告或错误时生成异常。此类不能被继承)

        System.Data.SqlClient.SqlException(当 SQL Server 返回警告或错误时引发的异常。此类不能被继承)

System.Messaging.MessageQueueException(发生 Microsoft 消息队列内部错误时引发的异常)

    System.Runtime.InteropServices.COMException(当 COM 方法调用返回一个无法识别的HRESULT 时引发的异常)

                   System.DirectoryServices.DirectoryServicesCOMException(包含扩展的错误的信息发生了错误,当 Invoke 调用方法)

    System.Runtime.InteropServices.SEHException(表示结构化异常处理 (SEH)错误)

    System.ServiceModel.MsmqException(由消息队列 (MSMQ) 返回的包装错误。 此异常由消息队列传输和消息队列集成通道引发)

    System.Web.HttpException(描述在处理 HTTP 请求期间发生的异常)

System.Runtime.InteropServices.InvalidComObjectException(当使用无效的 COM 对象时引发的异常)

System.Runtime.InteropServices.InvalidOleVariantTypeException(当封送处理程序遇到无法封送到托管代码的变量类型参数时,由该封送处理程序引发的异常)

System.Runtime.InteropServices.MarshalDirectiveException(当封送拆收器遇到它不支持的MarshalAsAttribute 时由该封送拆收器引发的异常)

System.Runtime.InteropServices.SafeArrayRankMismatchException(传入SAFEARRAY的秩与托管签名中指定的秩不匹配时引发的异常)

System.Runtime.InteropServices.SafeArrayTypeMismatchException(传入 SAFEARRAY的类型与托管签名中指定的类型不匹配时引发的异常)

System.Runtime.Remoting.RemotingException(远程处理的过程时出现了问题将引发异常)

         System.Runtime.Remoting.RemotingTimeoutException(在以前指定的某个时期内无法到达服务器或客户端时引发的异常)

System.Runtime.Remoting.ServerException(当客户端连接到无法引发异常的非 .NET Framework 应用程序时,则引发该异常,以向客户端传达错误)

System.Runtime.Serialization.SerializationException(当序列化或反序列化过程中发生错误时引发的异常)

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.SecurityException(检测到安全错误时引发的异常)

System.Security.VerificationException(当安全策略要求代码是类型安全的但验证过程无法验证该代码是否是类型安全的时引发的异常)

System.Security.XmlSyntaxException(XML 分析中出现语法错误时引发的异常。 此类不能被继承)

System.ServiceModel.CommunicationException(表示服务或客户端应用程序中的通信错误)

         System.ServiceModel.ActionNotSupportedException(当与所调用操作相关的动作和服务器中的任何操作动作都不匹配时,通常会在客户端上引发此异常)

    System.ServiceModel.AddressAccessDeniedException(对地址的访问遭到拒绝时引发的异)

    System.ServiceModel.AddressAlreadyInUseException(因地址已被使用而不可用时引发的异常)

    System.ServiceModel.Channels.RedirectionException(表示在重定向处理时发生的错误)

    System.ServiceModel.Channels.RetryException(表示一个重试异常,消息传递主机【如 WorkflowServiceHost】可使用此异常将对某个尝试的操作的任何取消传达到客户端)

    System.ServiceModel.ChannelTerminatedException(此异常通常在通道由于服务器关闭了所关联的连接而终止时在客户端上引发)

    System.ServiceModel.CommunicationObjectAbortedException(调用已经中止的ICommunicationObject 对象时引发的异常)

    System.ServiceModel.CommunicationObjectFaultedException(调用出错通信对象时引发的异常)

    System.ServiceModel.Dispatcher.MessageFilterException(当筛选器检查的节点的配额超出时,引发的异常的基类)

    System.ServiceModel.EndpointNotFoundException(无法找到或访问远程终结点时引发的异常)

    System.ServiceModel.FaultException(表示 SOAP 错误)

    System.ServiceModel.Persistence.PersistenceException(备注:此 API 现在已过时。当遇到一般性连接错误时,SqlPersistenceProviderFactory 将引发此异常)

    System.ServiceModel.PoisonMessageException(当认为消息是病毒消息时引发的一个异常。 如果多次尝试发送某个消息都失败,则说明该消息已中毒)

    System.ServiceModel.ProtocolException(当由于数据传输协议不匹配而导致无法与远程方进行通信时,将在客户端引发此异常)

    System.ServiceModel.Security.MessageSecurityException(表示当应用到消息的安全出现错误时发生的异常)

                   System.ServiceModel.Security.ExpiredSecurityTokenException(当 CardSpace 安全令牌过期时引发的异常)

    System.ServiceModel.Security.SecurityAccessDeniedException(表示安全授权请求失败时引发的安全异常)

    System.ServiceModel.Security.SecurityNegotiationException(指示协商消息的安全上下文时发生错误)

    System.ServiceModel.ServerTooBusyException(服务器太忙而无法接受消息时引发的异常)

    System.ServiceModel.ServiceActivationException(无法激活服务时引发的异常)

System.ServiceModel.Dispatcher.InvalidBodyAccessException(异常的 abstract 基类,如果试图访问消息的正文但不允许访问,则会引发该异常)

System.ServiceModel.Dispatcher.MultipleFilterMatchesException(只需要一个筛选器但却有多个筛选器匹配时引发的异常)

System.ServiceModel.InvalidMessageContractException(表示无效的消息协定)

System.ServiceModel.QuotaExceededException(当超过消息配额时引发的一个异常)

System.ServiceProcess.TimeoutException(当指定的超时时间已过时引发的异常)

System.StackOverflowException(因包含的嵌套方法调用过多而导致执行堆栈溢出时引发的异常。 此类不能被继承)

System.Threading.AbandonedMutexException(当某个线程获取时引发的异常 Mutex 对象的另一个线程已放弃由正在退出而不将其释放)

System.Threading.SemaphoreFullException(对已经达到最大计数值的信号量调用 Semaphore.Release 方法时引发的异常)

System.Threading.SynchronizationLockException(当某个方法要求调用方拥有给定 Monitor 上的锁并且该方法由不拥有该锁的调用方调用时引发的异常)

System.Threading.ThreadAbortException(当对 Abort 方法发出调用时引发的异常。 此类不能被继承)

System.Threading.ThreadInterruptedException(当线程处于等待状态时被中断,则引发此异常)

System.Threading.ThreadStartException(当基础操作系统线程已启动但该线程尚未准备好执行用户代码前,托管线程中出现错误,则会引发异常)

System.Threading.ThreadStateException(当一个线程是由方法调用而处于非法的ThreadState状态时引发异常)

System.TimeoutException(当为进程或操作分配的时间已过期时引发的异常)

         System.Text.RegularExpressions.RegexMatchTimeoutException(正则表达式模式匹配方法的执行时间超出其超时时间间隔时引发的异常)

System.Transactions.TransactionException(当您尝试执行不能接受新的工作的事务上工作时引发的异常)

         System.Transactions.TransactionAbortedException(当某个操作尝试对已返回,回滚的事务或尝试提交事务和事务时引发的异常中止)

    System.Transactions.TransactionInDoubtException(当尝试执行操作已经有疑问的事务或者尝试提交事务而这个事务变成疑问状态时引发异常)

    System.Transactions.TransactionManagerCommunicationException(当资源管理器无法与事务管理器进行通信时引发的异常)

    System.Transactions.TransactionPromotionException(在提升失败时引发的异常)

System.TypeInitializationException(作为类初始值设定项引发的异常的包装器而引发的异常。 此类不能被继承)

System.TypeLoadException(当发生类型加载失败时引发的异常)

         System.DllNotFoundException(当未找到在 DLL 导入中指定的 DLL 时所引发的异常)

    System.EntryPointNotFoundException(因不存在项方法而导致加载类的尝试失败时引发的异常)

    System.TypeAccessException(当方法试图使用它无权访问的类型时引发的异常)

System.TypeUnloadedException(尝试访问已卸载的类时所引发的异常)

System.UnauthorizedAccessException(当操作系统因 I/O 错误或指定类型的安全错误而拒绝访问时所引发的异常)

         System.Security.AccessControl.PrivilegeNotHeldException(当System.Security.AccessControl 命名空间中的方法尝试启用它所不具备的特权时引发的异常)

System.UriTemplateMatchException(表示将 Uri 与UriTemplateTable 匹配时发生的错误)

System.Web.Caching.DatabaseNotEnabledForNotificationException(SQLServer 数据库未启用以支持与关联的依赖关系SqlCacheDependency类时引发的异常。此类不能被继承)

System.Web.Caching.TableNotEnabledForNotificationException(在SqlCacheDependency 类用于未为其启用更改通知的数据库表时引发的异常)

System.Web.Management.SqlExecutionException(命名空间System.Web.Management中定义 的SQL 执行中的异常类)

System.Web.Services.Protocols.SoapException(表示在 SOAP 上调用 XML Web 服务方法,并且会发生异常时引发的异常)

         System.Web.Services.Protocols.SoapHeaderException(服务器错误 SOAP 表示形式)

System.Windows.Automation.ElementNotAvailableException(包含有关在尝试访问时引发的异常信息 UI 自动化不再可用的用户界面部分对应的元素)

System.Windows.Data.ValueUnavailableException(由方法BindingGroup.GetValue(Object, String)值不可用时的引发的异常)

System.Windows.Markup.XamlParseException(表示从 WPF XAML 分析器的特定于分析器的异常的异常类。 在 XAML API 或 WPF XAML 分析器操作中使用此异常.NET Framework 3.0 和 .NET Framework 3.5, ,或者通过调用的 WPF XAML 分析器特定用于 System.Windows.Markup.XamlReader API)

System.Windows.Media.Animation.AnimationException(当属性进行动画处理过程中发生错误时引发的异常)

System.Windows.Media.InvalidWmpVersionException(已安装 MicrosoftWindows Media Player 版本不受支持时,将引发的异常)

System.Workflow.Activities.EventDeliveryFailedException(备注:此 API 现在已过时。当宿主中引发的事件无法传递到工作流实例时引发的异常。该事件通常从工作流实例上的 ExternalDataExchangeService 中引发。 此类不能被继承)

System.Workflow.Activities.WorkflowAuthorizationException(备注:此 API 现在已过时。由于WorkflowRoleCollection 中不包含指定的标识而导致角色验证失败时引发的异常)

System.Workflow.Runtime.Hosting.PersistenceException(备注:此 API 现在已过时。当持久性服务无法满足请求时引发的异常。)

System.Workflow.Runtime.Tracking.TrackingProfileDeserializationException(备注:此 API 现在已过时。当TrackingProfile 无法将 XML 文档反序列化为 TrackingProfileSerializer 时,将会引发异常)

System.Xml.Schema.XmlSchemaException(返回架构异常有关的详细的信)

         System.Xml.Schema.XmlSchemaInferenceException(返回有关XmlSchemaInference 类在从 XML 文档推断架构时所遇错误的信息)

    System.Xml.Schema.XmlSchemaValidationException(表示正在验证的 XML 文档中遇到 XML 架构定义语言 (XSD) 架构验证错误和警告时引发的异常)

System.Xml.XmlException(返回有关上一个异常的详细信息)

System.Xml.XPath.XPathException(提供当处理 XPath 表达式时出现错误时引发的异常)

         System.ServiceModel.Dispatcher.XPathNavigatorException(当允许XPathNavigator 检查的节点的配额超出时,将引发的异常)

System.Xml.Xsl.XsltException(当处理 XSLT 转换过程中发生错误时引发的异常)

         System.Xml.Xsl.XsltCompileException(通过负载 XSLT 样式表中找到了错误的方法引发的异常)

 


  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值