Leer en inglés

Compartir a través de


ServerException Class

Base class for all server-generated exceptions.

Inheritance Hierarchy

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

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class ServerException _
    Inherits TeamFoundationServiceException
[SerializableAttribute]
public abstract class ServerException : TeamFoundationServiceException
[SerializableAttribute]
public ref class ServerException abstract : public TeamFoundationServiceException
[<AbstractClass>]
[<SerializableAttribute>]
type ServerException =  
    class 
        inherit TeamFoundationServiceException 
    end
public abstract class ServerException extends TeamFoundationServiceException

The ServerException type exposes the following members.

Constructors

Top

Properties

  Name Description
Public property Data Gets the data associated with this exception, if any. (Inherited from TeamFoundationServerException.)
Public property ErrorCode (Inherited from VssException.)
Public property EventId (Inherited from VssException.)
Public property FaultCode Indicate the SOAP fault code for the exception. (Inherited from TeamFoundationServiceException.)
Public property HelpLink Gets or sets a link to the help file associated with this exception. (Inherited from Exception.)
Protected property HResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.)
Public property InnerException Gets the Exception instance that caused the current exception. (Inherited from Exception.)
Public property IsRemoteException Gets a flag describing whether this exception was thrown by the server and received by the client. (Inherited from TeamFoundationServerException.)
Public property LogException (Inherited from VssException.)
Public property LogLevel (Inherited from VssException.)
Public property Message Gets a message that describes the current exception. (Inherited from Exception.)
Public property ReportException (Inherited from VssException.)
Public property RequestContext The RequestContext associated with this exception. This may be null. (Inherited from TeamFoundationServiceException.)
Public property Source Gets or sets the name of the application or the object that causes the error. (Inherited from Exception.)
Public property StackTrace Gets a string representation of the immediate frames on the call stack. (Inherited from Exception.)
Public property TargetSite Gets the method that throws the current exception. (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodStatic member ExtractIdentityName Parses a SqlError message and extracts the field identified by the key. The field is treated as an Identity ID, and the ID is translated to a Display Name.
Protected methodStatic member ExtractLocalItem Parses a SqlError message and extracts the field identified by the key. The field is treated as a Local Path.
Protected methodStatic member ExtractLocalOrServerItem Parses a SqlError message and extracts the field identified by the key. The field is treated as a Local Path or a Server Path.
Protected methodStatic member ExtractServerItem Parses a SqlError message and extracts the field identified by the key. The field is treated as a Server Path.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBaseException When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.)
Protected method GetExceptionProperties Retrieves properties of the exception that should be serialized to the client. The properties will be added as a child of the SOAP detail node named "Properties." Each property is written so that the name of the node is the property name and a text child of the element is the value. A "type" attribute is included with the property node to help in deserialization. (Inherited from TeamFoundationServiceException.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetObjectData Security Critical. Serialize the extra properties that are stored in this exception class. (Inherited from TeamFoundationServiceException.)
Public method GetType Gets the runtime type of the current instance. (Inherited from Exception.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetFailureInfo
Public method ToString Creates and returns a string representation of the current exception. (Inherited from Exception.)

Top

Events

  Name Description
Protected event SerializeObjectState Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Server Namespace

Inheritance Hierarchy

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