Share via


ServerException, classe

Classe de base pour toutes les exceptions par générées.

Hiérarchie d'héritage

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.VisualStudio.Services.Common.VssException
        Microsoft.TeamFoundation.TeamFoundationServerException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
            Microsoft.TeamFoundation.VersionControl.Server.ServerException
              En savoir plus...

Espace de noms :  Microsoft.TeamFoundation.VersionControl.Server
Assembly :  Microsoft.TeamFoundation.VersionControl.Server (dans Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public MustInherit Class ServerException _
    Inherits TeamFoundationServiceException
[SerializableAttribute]
public abstract class ServerException : TeamFoundationServiceException

Le type ServerException expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée ServerException()
Méthode protégée ServerException(String)
Méthode protégée ServerException(String, Exception)

Début

Propriétés

  Nom Description
Propriété publique Data Obtient les données associées à cette exception éventuelle. (Hérité de TeamFoundationServerException.)
Propriété publique ErrorCode (Hérité de VssException.)
Propriété publique EventId (Hérité de VssException.)
Propriété publique FaultCode Afficher un code d'erreur SOAP pour l'exception. (Hérité de TeamFoundationServiceException.)
Propriété publique HelpLink Obtient ou définit un lien vers le fichier d'aide associé à cette exception. (Hérité de Exception.)
Propriété protégée HResult Obtient ou définit HRESULT, valeur numérique codée qui est assignée à une exception spécifique. (Hérité de Exception.)
Propriété publique InnerException Obtient l'instance Exception qui a provoqué l'exception actuelle. (Hérité de Exception.)
Propriété publique IsRemoteException Obtient un indicateur décrivant si cette exception a été levée par le serveur et reçue par le client. (Hérité de TeamFoundationServerException.)
Propriété publique LogException (Hérité de VssException.)
Propriété publique LogLevel (Hérité de VssException.)
Propriété publique Message Obtient un message qui décrit l'exception actuelle. (Hérité de Exception.)
Propriété publique ReportException (Hérité de VssException.)
Propriété publique RequestContext Le RequestContext associé à cette exception.Il peut s'agir d'une valeur null. (Hérité de TeamFoundationServiceException.)
Propriété publique Source Obtient ou définit le nom de l'application ou de l'objet qui est à l'origine de l'erreur. (Hérité de Exception.)
Propriété publique StackTrace Obtient une représentation sous forme de chaîne des frames immédiates sur la pile des appels. (Hérité de Exception.)
Propriété publique TargetSite Obtient la méthode qui lève l'exception actuelle. (Hérité de Exception.)

Début

Méthodes

  Nom Description
Méthode publique Equals Détermine si l'objet spécifié est identique à l'objet actuel. (Hérité de Object.)
Méthode protégéeMembre statique ExtractIdentityName Analyse un message de SqlError et extrait le champ identifié par la clé.Le champ est traité comme ID d'identité, et l'ID est traduit dans un nom complet.
Méthode protégéeMembre statique ExtractLocalItem Analyse un message de SqlError et extrait le champ identifié par la clé.Le champ est traité comme un chemin local.
Méthode protégéeMembre statique ExtractLocalOrServerItem Analyse un message de SqlError et extrait le champ identifié par la clé.Le champ est traité comme un chemin local ou chemin d'accès au serveur.
Méthode protégéeMembre statique ExtractServerItem Analyse un message de SqlError et extrait le champ identifié par la clé.Le champ est traité comme un chemin d'accès au serveur.
Méthode protégée Finalize Autorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de nettoyage avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode publique GetBaseException En cas de substitution dans une classe dérivée, retourne Exception qui est à l'origine d'une ou de plusieurs exceptions suivantes. (Hérité de Exception.)
Méthode protégée GetExceptionProperties Récupère les propriétés de l'exception qui doit être sérialisée au client.Les propriétés seront ajoutées en tant qu'enfant propriétés nommées par nœud spécifique SOAP des « . » Chaque propriété est écrite afin que le nom du nœud correspond au nom de propriété et un enfant de l'élément soit la valeur.Un attribut « type » est inclus avec le nœud de propriété pour aider dans la désérialisation. (Hérité de TeamFoundationServiceException.)
Méthode publique GetHashCode Sert de fonction de hachage par défaut. (Hérité de Object.)
Méthode publique GetObjectData Essentiel pour la sécurité. Sérialisez des propriétés supplémentaires qui sont enregistrées dans cette classe d'exception. (Hérité de TeamFoundationServiceException.)
Méthode publique GetType Obtient le type au moment de l'exécution de l'instance actuelle. (Hérité de Exception.)
Méthode protégée MemberwiseClone Crée une copie superficielle de l'objet Object actuel. (Hérité de Object.)
Méthode publique SetFailureInfo
Méthode publique ToString Crée et retourne une chaîne représentant l'exception en cours. (Hérité de Exception.)

Début

Événements

  Nom Description
Événement protégé SerializeObjectState Se produit lorsqu'une exception est sérialisée pour créer un objet d'état d'exception qui contient des données sérialisées relatives à l'exception. (Hérité de Exception.)

Début

Sécurité des threads

Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi

Référence

Microsoft.TeamFoundation.VersionControl.Server, espace de noms

Hiérarchie d'héritage

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