ServerException 类

所有服务器生成的异常的基类。

继承层次结构

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.VisualStudio.Services.Common.VssException
        Microsoft.TeamFoundation.TeamFoundationServerException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
            Microsoft.TeamFoundation.VersionControl.Server.ServerException
              更多...

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
<SerializableAttribute> _
Public MustInherit Class ServerException _
    Inherits TeamFoundationServiceException
[SerializableAttribute]
public abstract class ServerException : TeamFoundationServiceException

ServerException 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 ServerException()
受保护的方法 ServerException(String)
受保护的方法 ServerException(String, Exception)

页首

属性

  名称 说明
公共属性 Data 获取关联的数据具有此异常,因此,如果有的话)。 (继承自 TeamFoundationServerException。)
公共属性 ErrorCode (继承自 VssException。)
公共属性 EventId (继承自 VssException。)
公共属性 FaultCode 指示异常的 SOAP 错误代码。 (继承自 TeamFoundationServiceException。)
公共属性 HelpLink 获取或设置指向此异常所关联帮助文件的链接。 (继承自 Exception。)
受保护的属性 HResult 获取或设置 HRESULT(一个分配给特定异常的编码数字值)。 (继承自 Exception。)
公共属性 InnerException 获取导致当前异常的 Exception 实例。 (继承自 Exception。)
公共属性 IsRemoteException 获取描述的标志此异常是由服务器引发并由客户端接收。 (继承自 TeamFoundationServerException。)
公共属性 LogException (继承自 VssException。)
公共属性 LogLevel (继承自 VssException。)
公共属性 Message 获取描述当前异常的消息。 (继承自 Exception。)
公共属性 ReportException (继承自 VssException。)
公共属性 RequestContext RequestContext 关联具有此异常。这可能为 null。 (继承自 TeamFoundationServiceException。)
公共属性 Source 获取或设置导致错误的应用程序或对象的名称。 (继承自 Exception。)
公共属性 StackTrace 获取调用堆栈上直接帧的字符串表示形式。 (继承自 Exception。)
公共属性 TargetSite 获取引发当前异常的方法。 (继承自 Exception。)

页首

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法静态成员 ExtractIdentityName 分析 SqlError 消息并提取键标识的字段。字段将标识 ID,并且,ID 将转换为显示名称。
受保护的方法静态成员 ExtractLocalItem 分析 SqlError 消息并提取键标识的字段。字段视为本地路径。
受保护的方法静态成员 ExtractLocalOrServerItem 分析 SqlError 消息并提取键标识的字段。字段视为本地路径或服务器路径。
受保护的方法静态成员 ExtractServerItem 分析 SqlError 消息并提取键标识的字段。字段将服务器路径。
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetBaseException 当在派生类中重写时,返回 Exception,它是一个或多个并发的异常的根源。 (继承自 Exception。)
受保护的方法 GetExceptionProperties 检索序列化到客户端异常的属性。属性将添加为 SOAP 详细信息节点名为“属性的子级”。每个属性编写的,以便节点的名称是属性名称,并且该元素的文本子项是值。“type”属性在反序列化包含在属性节点帮助。 (继承自 TeamFoundationServiceException。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetObjectData 安全关键。序列化此异常选件类存储的其他属性。 (继承自 TeamFoundationServiceException。)
公共方法 GetType 获取当前实例的运行时类型。 (继承自 Exception。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 SetFailureInfo
公共方法 ToString 创建并返回当前异常的字符串表示形式。 (继承自 Exception。)

页首

事件

  名称 说明
受保护的事件 SerializeObjectState 在序列化异常,以创建包含有关异常的序列化数据的异常状态对象时发生。 (继承自 Exception。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.TeamFoundation.VersionControl.Server 命名空间

继承层次结构

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.VisualStudio.Services.Common.VssException
        Microsoft.TeamFoundation.TeamFoundationServerException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
            Microsoft.TeamFoundation.VersionControl.Server.ServerException
              Microsoft.TeamFoundation.VersionControl.Server.AcceptMergeNamespaceConflictRequiresDestinationException
              Microsoft.TeamFoundation.VersionControl.Server.AcceptMergeVersionConflictRequiresDestinationException
              Microsoft.TeamFoundation.VersionControl.Server.AcceptYoursRenameTheirsRequiresDestinationException
              Microsoft.TeamFoundation.VersionControl.Server.ArtifactIdentifierRequiredException
              Microsoft.TeamFoundation.VersionControl.Server.AutoMergeDisallowedException
              Microsoft.TeamFoundation.VersionControl.Server.BadChecksumException
              Microsoft.TeamFoundation.VersionControl.Server.CannotChangeRootFolderException
              Microsoft.TeamFoundation.VersionControl.Server.CannotChangeWorkspaceOwnerException
              Microsoft.TeamFoundation.VersionControl.Server.CannotCheckinAllWithEditException
              Microsoft.TeamFoundation.VersionControl.Server.CannotCreateFilesInRootException
              Microsoft.TeamFoundation.VersionControl.Server.CannotCreateNewUserDuringCheckinException
              Microsoft.TeamFoundation.VersionControl.Server.CannotFindLatestChangesetException
              Microsoft.TeamFoundation.VersionControl.Server.CannotMergeUnderSourceException
              Microsoft.TeamFoundation.VersionControl.Server.CannotMergeWithWorkspaceSpecAndPendingDeleteException
              Microsoft.TeamFoundation.VersionControl.Server.CannotMoveToRootException
              Microsoft.TeamFoundation.VersionControl.Server.CannotRenameBackToOriginalSourceException
              Microsoft.TeamFoundation.VersionControl.Server.CannotRenameDueToChildConflictException
              Microsoft.TeamFoundation.VersionControl.Server.CannotResolveAcceptMergeWithNonexistentVersionException
              Microsoft.TeamFoundation.VersionControl.Server.CannotResolveBecauseShelvesetDeletedException
              Microsoft.TeamFoundation.VersionControl.Server.CannotResolveConflictAsAutoMerge
              Microsoft.TeamFoundation.VersionControl.Server.CannotResolveDeletedItemWithAcceptMergeException
              Microsoft.TeamFoundation.VersionControl.Server.CannotResolveDueToRenameAndDelete
              Microsoft.TeamFoundation.VersionControl.Server.CannotResolveToPartialUndeleteException
              Microsoft.TeamFoundation.VersionControl.Server.CannotSpecifyNewNameException
              Microsoft.TeamFoundation.VersionControl.Server.CannotTakeCheckoutLockInLocalWorkspaceException
              Microsoft.TeamFoundation.VersionControl.Server.CannotUndeleteTeamProjectFolderException
              Microsoft.TeamFoundation.VersionControl.Server.CannotUndoItemExistingLockConflictsException
              Microsoft.TeamFoundation.VersionControl.Server.CannotUndoRenameDueToChildConflictException
              Microsoft.TeamFoundation.VersionControl.Server.CannotUnlockException
              Microsoft.TeamFoundation.VersionControl.Server.ChangesetAuthorMustBeNonGroupException
              Microsoft.TeamFoundation.VersionControl.Server.ChangesetNotFoundException
              Microsoft.TeamFoundation.VersionControl.Server.CheckoutLockRequiredException
              Microsoft.TeamFoundation.VersionControl.Server.CheckoutLocksDisabledException
              Microsoft.TeamFoundation.VersionControl.Server.ContentNotUploadedException
              Microsoft.TeamFoundation.VersionControl.Server.CouldNotAddProxyException
              Microsoft.TeamFoundation.VersionControl.Server.CouldNotDeleteProxyException
              Microsoft.TeamFoundation.VersionControl.Server.CreateBranchObjectException
              Microsoft.TeamFoundation.VersionControl.Server.DateVersionSpecBeforeBeginningOfRepositoryException
              Microsoft.TeamFoundation.VersionControl.Server.DestroyedContentUnavailableException
              Microsoft.TeamFoundation.VersionControl.Server.DuplicateChangeException
              Microsoft.TeamFoundation.VersionControl.Server.DuplicateCheckinNoteFieldException
              Microsoft.TeamFoundation.VersionControl.Server.DuplicateExtensionException
              Microsoft.TeamFoundation.VersionControl.Server.DuplicateFileTypeException
              Microsoft.TeamFoundation.VersionControl.Server.DuplicateItemFoundException
              Microsoft.TeamFoundation.VersionControl.Server.DuplicateWorkingFolderException
              Microsoft.TeamFoundation.VersionControl.Server.FeatureNotSupportedException
              Microsoft.TeamFoundation.VersionControl.Server.FileIdNotFoundException
              Microsoft.TeamFoundation.VersionControl.Server.FutureDateException
              Microsoft.TeamFoundation.VersionControl.Server.GenericDatabaseUpdateErrorException
              Microsoft.TeamFoundation.VersionControl.Server.GenericException
              Microsoft.TeamFoundation.VersionControl.Server.GetLatestOnCheckoutDisabledException
              Microsoft.TeamFoundation.VersionControl.Server.IdenticalPathsDueToCollationException
              Microsoft.TeamFoundation.VersionControl.Server.IdentityDeletedException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalCommentException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalComputerNameException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalFieldNameException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalIdentityException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalLabelNameException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalPolicyNameException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalShelvesetException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalShelvesetOwnerException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalUrlException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalVersionException
              Microsoft.TeamFoundation.VersionControl.Server.IllegalWorkspaceException
              Microsoft.TeamFoundation.VersionControl.Server.IncompatibleCompressionFormatException
              Microsoft.TeamFoundation.VersionControl.Server.IncompletePendingChangeException
              Microsoft.TeamFoundation.VersionControl.Server.IncompleteUploadException
              Microsoft.TeamFoundation.VersionControl.Server.InconsistentRequestTypesException
              Microsoft.TeamFoundation.VersionControl.Server.IncorrectSizeException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidAcceptYoursException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidAcceptYoursRenameTheirsException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidBranchCheckinOptionException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidCheckinDateException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidCheckinTicketException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidConflictIdException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidExtensionException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidFileIdException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidResolutionException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidSqlDateException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidVersionSpecException
              Microsoft.TeamFoundation.VersionControl.Server.InvalidVersionSpecForOperationException
              Microsoft.TeamFoundation.VersionControl.Server.ItemRequiredException
              Microsoft.TeamFoundation.VersionControl.Server.LabelExistsException
              Microsoft.TeamFoundation.VersionControl.Server.LabelHasChildrenException
              Microsoft.TeamFoundation.VersionControl.Server.LabelNotFoundException
              Microsoft.TeamFoundation.VersionControl.Server.LabelNotUniqueException
              Microsoft.TeamFoundation.VersionControl.Server.LabelOwnerChangeException
              Microsoft.TeamFoundation.VersionControl.Server.LocalPathTooLongException
              Microsoft.TeamFoundation.VersionControl.Server.LongPathInWorkspaceRequires2012QU1Exception
              Microsoft.TeamFoundation.VersionControl.Server.MaxRowsEvaluatedException
              Microsoft.TeamFoundation.VersionControl.Server.MergeEditDeleteException
              Microsoft.TeamFoundation.VersionControl.Server.MergeTargetFileSourceDirectoryException
              Microsoft.TeamFoundation.VersionControl.Server.MergeTargetPathAlreadyHasPendingMergeException
              Microsoft.TeamFoundation.VersionControl.Server.MergeTargetPathHasIncompatiblePendingChangeException
              Microsoft.TeamFoundation.VersionControl.Server.MergeTargetPathHasNamespacePendingChangeConflictException
              Microsoft.TeamFoundation.VersionControl.Server.MustUndeleteParentException
              Microsoft.TeamFoundation.VersionControl.Server.NoChangesToShelveException
              Microsoft.TeamFoundation.VersionControl.Server.NoMergeRelationshipException
              Microsoft.TeamFoundation.VersionControl.Server.OwnerRequiredException
              Microsoft.TeamFoundation.VersionControl.Server.PartialRenameConflictException
              Microsoft.TeamFoundation.VersionControl.Server.PendingChangeChangedException
              Microsoft.TeamFoundation.VersionControl.Server.PendingChangeContentNotFoundException
              Microsoft.TeamFoundation.VersionControl.Server.PluginHasMultipleInterfacesException
              Microsoft.TeamFoundation.VersionControl.Server.RepositoryPathTooLongDetailedException
              Microsoft.TeamFoundation.VersionControl.Server.RepositoryPathTooLongDueToDeletedItemsException
              Microsoft.TeamFoundation.VersionControl.Server.RepositoryPathTooLongException
              Microsoft.TeamFoundation.VersionControl.Server.ReservedAnnotationException
              Microsoft.TeamFoundation.VersionControl.Server.RollbackInvalidOptionException
              Microsoft.TeamFoundation.VersionControl.Server.RollbackInvalidVersionSpecException
              Microsoft.TeamFoundation.VersionControl.Server.RootInheritanceException
              Microsoft.TeamFoundation.VersionControl.Server.SecurityConfigurationException
              Microsoft.TeamFoundation.VersionControl.Server.SecurityException
              Microsoft.TeamFoundation.VersionControl.Server.ServerItemException
              Microsoft.TeamFoundation.VersionControl.Server.ShelveMergeConflictExistsException
              Microsoft.TeamFoundation.VersionControl.Server.ShelvesetExistsException
              Microsoft.TeamFoundation.VersionControl.Server.ShelvesetNotFoundException
              Microsoft.TeamFoundation.VersionControl.Server.ShelvingPartialRenameConflictException
              Microsoft.TeamFoundation.VersionControl.Server.TargetIsChildException
              Microsoft.TeamFoundation.VersionControl.Server.TeamFoundationVersionControlNotEnabledForTeamProject
              Microsoft.TeamFoundation.VersionControl.Server.TeamProjectCannotDeleteException
              Microsoft.TeamFoundation.VersionControl.Server.TeamProjectNotEmptyException
              Microsoft.TeamFoundation.VersionControl.Server.TeamProjectNotFoundException
              Microsoft.TeamFoundation.VersionControl.Server.UndeleteAboveUnrelatedItemException
              Microsoft.TeamFoundation.VersionControl.Server.UndeleteNewNameNotSupportedException
              Microsoft.TeamFoundation.VersionControl.Server.UnshelvingPartialRenameException
              Microsoft.TeamFoundation.VersionControl.Server.WebMethodNotSupportedException
              Microsoft.TeamFoundation.VersionControl.Server.WildcardNotAllowedException
              Microsoft.TeamFoundation.VersionControl.Server.WorkingFolderInUseException
              Microsoft.TeamFoundation.VersionControl.Server.WorkspaceException